sentdm 0.4.0 → 0.5.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 +8 -0
- data/README.md +1 -27
- data/lib/sentdm/client.rb +5 -8
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/{api_response_contact.rb → api_response_of_contact.rb} +4 -4
- data/lib/sentdm/models/base_dto.rb +30 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/{brand_data.rb → brands_brand_data.rb} +17 -17
- data/lib/sentdm/models/contact_delete_params.rb +1 -1
- data/lib/sentdm/models/contact_list_response.rb +3 -3
- data/lib/sentdm/models/{contact.rb → contact_response.rb} +1 -1
- data/lib/sentdm/models/{mutation_request.rb → mutation_request_base.rb} +2 -2
- data/lib/sentdm/models/number_lookup_params.rb +26 -0
- data/lib/sentdm/models/number_lookup_response.rb +104 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +3 -3
- data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
- data/lib/sentdm/models/profile_create_params.rb +9 -91
- data/lib/sentdm/models/profile_delete_params.rb +1 -1
- data/lib/sentdm/models/profile_detail.rb +369 -3
- data/lib/sentdm/models/profile_update_params.rb +9 -91
- data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -5
- data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
- data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +28 -7
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +50 -0
- data/lib/sentdm/models/profiles/campaign_list_params.rb +28 -0
- data/lib/sentdm/models/profiles/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/profiles/campaign_update_params.rb +64 -0
- data/lib/sentdm/models/{brands → profiles}/messaging_use_case_us.rb +1 -1
- data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
- data/lib/sentdm/models/template_definition.rb +255 -15
- data/lib/sentdm/models/user_remove_params.rb +1 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
- data/lib/sentdm/models.rb +14 -26
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/numbers.rb +44 -0
- data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
- data/lib/sentdm/resources/profiles.rb +16 -11
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +22 -22
- data/rbi/sentdm/client.rbi +4 -6
- data/rbi/sentdm/models/{api_response_contact.rbi → api_response_of_contact.rbi} +6 -6
- data/rbi/sentdm/models/base_dto.rbi +49 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/{brand_data.rbi → brands_brand_data.rbi} +44 -27
- data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
- data/rbi/sentdm/models/contact_list_response.rbi +4 -4
- data/rbi/sentdm/models/{contact.rbi → contact_response.rbi} +4 -2
- data/rbi/sentdm/models/{mutation_request.rbi → mutation_request_base.rbi} +2 -2
- data/rbi/sentdm/models/number_lookup_params.rbi +46 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +166 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +2 -2
- data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
- data/rbi/sentdm/models/profile_create_params.rbi +12 -146
- data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profile_detail.rbi +562 -4
- data/rbi/sentdm/models/profile_update_params.rbi +12 -146
- data/rbi/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbi → profiles/api_response_of_tcr_campaign_with_use_cases.rbi} +7 -7
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +88 -0
- data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +51 -16
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +95 -0
- data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +84 -0
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +94 -0
- data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
- data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +37 -29
- data/rbi/sentdm/models/template_definition.rbi +405 -74
- data/rbi/sentdm/models/user_remove_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
- data/rbi/sentdm/models.rbi +14 -26
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/numbers.rbi +32 -0
- data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
- data/rbi/sentdm/resources/profiles.rbi +11 -11
- data/sig/sentdm/client.rbs +2 -4
- data/sig/sentdm/models/{api_response_contact.rbs → api_response_of_contact.rbs} +6 -6
- data/sig/sentdm/models/base_dto.rbs +25 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/{brand_data.rbs → brands_brand_data.rbs} +19 -19
- data/sig/sentdm/models/contact_delete_params.rbs +1 -1
- data/sig/sentdm/models/contact_list_response.rbs +7 -5
- data/sig/sentdm/models/{contact.rbs → contact_response.rbs} +2 -2
- data/sig/sentdm/models/{mutation_request.rbs → mutation_request_base.rbs} +2 -2
- data/sig/sentdm/models/number_lookup_params.rbs +30 -0
- data/sig/sentdm/models/number_lookup_response.rbs +100 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +2 -2
- data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +12 -66
- data/sig/sentdm/models/profile_delete_params.rbs +1 -1
- data/sig/sentdm/models/profile_detail.rbs +289 -4
- data/sig/sentdm/models/profile_update_params.rbs +12 -66
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
- data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +27 -5
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +53 -0
- data/sig/sentdm/models/profiles/campaign_list_params.rbs +32 -0
- data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/campaign_list_response.rbs} +7 -7
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +59 -0
- data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
- data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
- data/sig/sentdm/models/template_definition.rbs +233 -20
- data/sig/sentdm/models/user_remove_params.rbs +1 -1
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
- data/sig/sentdm/models.rbs +14 -20
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/numbers.rbs +13 -0
- data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
- data/sig/sentdm/resources/profiles.rbs +9 -7
- metadata +67 -67
- data/lib/sentdm/models/brand_with_kyc.rb +0 -370
- data/lib/sentdm/models/brands/base_dto.rb +0 -32
- data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -30
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/resources/brands/campaigns.rb +0 -16
- data/lib/sentdm/resources/brands.rb +0 -18
- data/lib/sentdm/resources/lookup.rb +0 -14
- data/rbi/sentdm/models/brand_with_kyc.rbi +0 -516
- data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
- data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -52
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -79
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -60
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -62
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -14
- data/rbi/sentdm/resources/brands.rbi +0 -15
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/sig/sentdm/models/brand_with_kyc.rbs +0 -288
- data/sig/sentdm/models/brands/base_dto.rbs +0 -27
- data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profile_complete_response.rbs +0 -5
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -38
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -32
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -9
- data/sig/sentdm/resources/brands.rbs +0 -9
- data/sig/sentdm/resources/lookup.rbs +0 -7
|
@@ -2,44 +2,257 @@ 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::TemplateDefinition::Body,
|
|
6
|
+
authentication_config: Sentdm::TemplateDefinition::AuthenticationConfig?,
|
|
7
|
+
buttons: ::Array[Sentdm::TemplateDefinition::Button]?,
|
|
8
8
|
definition_version: String?,
|
|
9
|
-
footer: Sentdm::
|
|
10
|
-
header: Sentdm::
|
|
9
|
+
footer: Sentdm::TemplateDefinition::Footer?,
|
|
10
|
+
header: Sentdm::TemplateDefinition::Header?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
class TemplateDefinition < Sentdm::Internal::Type::BaseModel
|
|
14
|
-
attr_accessor body: Sentdm::
|
|
14
|
+
attr_accessor body: Sentdm::TemplateDefinition::Body
|
|
15
15
|
|
|
16
|
-
attr_accessor authentication_config: Sentdm::
|
|
16
|
+
attr_accessor authentication_config: Sentdm::TemplateDefinition::AuthenticationConfig?
|
|
17
17
|
|
|
18
|
-
attr_accessor buttons: ::Array[Sentdm::
|
|
18
|
+
attr_accessor buttons: ::Array[Sentdm::TemplateDefinition::Button]?
|
|
19
19
|
|
|
20
20
|
attr_accessor definition_version: String?
|
|
21
21
|
|
|
22
|
-
attr_accessor footer: Sentdm::
|
|
22
|
+
attr_accessor footer: Sentdm::TemplateDefinition::Footer?
|
|
23
23
|
|
|
24
|
-
attr_accessor header: Sentdm::
|
|
24
|
+
attr_accessor header: Sentdm::TemplateDefinition::Header?
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
|
-
body: Sentdm::
|
|
28
|
-
?authentication_config: Sentdm::
|
|
29
|
-
?buttons: ::Array[Sentdm::
|
|
27
|
+
body: Sentdm::TemplateDefinition::Body,
|
|
28
|
+
?authentication_config: Sentdm::TemplateDefinition::AuthenticationConfig?,
|
|
29
|
+
?buttons: ::Array[Sentdm::TemplateDefinition::Button]?,
|
|
30
30
|
?definition_version: String?,
|
|
31
|
-
?footer: Sentdm::
|
|
32
|
-
?header: Sentdm::
|
|
31
|
+
?footer: Sentdm::TemplateDefinition::Footer?,
|
|
32
|
+
?header: Sentdm::TemplateDefinition::Header?
|
|
33
33
|
) -> void
|
|
34
34
|
|
|
35
35
|
def to_hash: -> {
|
|
36
|
-
body: Sentdm::
|
|
37
|
-
authentication_config: Sentdm::
|
|
38
|
-
buttons: ::Array[Sentdm::
|
|
36
|
+
body: Sentdm::TemplateDefinition::Body,
|
|
37
|
+
authentication_config: Sentdm::TemplateDefinition::AuthenticationConfig?,
|
|
38
|
+
buttons: ::Array[Sentdm::TemplateDefinition::Button]?,
|
|
39
39
|
definition_version: String?,
|
|
40
|
-
footer: Sentdm::
|
|
41
|
-
header: Sentdm::
|
|
40
|
+
footer: Sentdm::TemplateDefinition::Footer?,
|
|
41
|
+
header: Sentdm::TemplateDefinition::Header?
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
type body =
|
|
45
|
+
{
|
|
46
|
+
multi_channel: Sentdm::TemplateBodyContent?,
|
|
47
|
+
sms: Sentdm::TemplateBodyContent?,
|
|
48
|
+
whatsapp: Sentdm::TemplateBodyContent?
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class Body < Sentdm::Internal::Type::BaseModel
|
|
52
|
+
attr_accessor multi_channel: Sentdm::TemplateBodyContent?
|
|
53
|
+
|
|
54
|
+
attr_accessor sms: Sentdm::TemplateBodyContent?
|
|
55
|
+
|
|
56
|
+
attr_accessor whatsapp: Sentdm::TemplateBodyContent?
|
|
57
|
+
|
|
58
|
+
def initialize: (
|
|
59
|
+
?multi_channel: Sentdm::TemplateBodyContent?,
|
|
60
|
+
?sms: Sentdm::TemplateBodyContent?,
|
|
61
|
+
?whatsapp: Sentdm::TemplateBodyContent?
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
multi_channel: Sentdm::TemplateBodyContent?,
|
|
66
|
+
sms: Sentdm::TemplateBodyContent?,
|
|
67
|
+
whatsapp: Sentdm::TemplateBodyContent?
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
type authentication_config =
|
|
72
|
+
{ add_security_recommendation: bool, code_expiration_minutes: Integer? }
|
|
73
|
+
|
|
74
|
+
class AuthenticationConfig < Sentdm::Internal::Type::BaseModel
|
|
75
|
+
attr_reader add_security_recommendation: bool?
|
|
76
|
+
|
|
77
|
+
def add_security_recommendation=: (bool) -> bool
|
|
78
|
+
|
|
79
|
+
attr_accessor code_expiration_minutes: Integer?
|
|
80
|
+
|
|
81
|
+
def initialize: (
|
|
82
|
+
?add_security_recommendation: bool,
|
|
83
|
+
?code_expiration_minutes: Integer?
|
|
84
|
+
) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> {
|
|
87
|
+
add_security_recommendation: bool,
|
|
88
|
+
code_expiration_minutes: Integer?
|
|
89
|
+
}
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
type button =
|
|
93
|
+
{
|
|
94
|
+
id: Integer,
|
|
95
|
+
props: Sentdm::TemplateDefinition::Button::Props,
|
|
96
|
+
type: String
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class Button < Sentdm::Internal::Type::BaseModel
|
|
100
|
+
attr_reader id: Integer?
|
|
101
|
+
|
|
102
|
+
def id=: (Integer) -> Integer
|
|
103
|
+
|
|
104
|
+
attr_reader props: Sentdm::TemplateDefinition::Button::Props?
|
|
105
|
+
|
|
106
|
+
def props=: (
|
|
107
|
+
Sentdm::TemplateDefinition::Button::Props
|
|
108
|
+
) -> Sentdm::TemplateDefinition::Button::Props
|
|
109
|
+
|
|
110
|
+
attr_reader type: String?
|
|
111
|
+
|
|
112
|
+
def type=: (String) -> String
|
|
113
|
+
|
|
114
|
+
def initialize: (
|
|
115
|
+
?id: Integer,
|
|
116
|
+
?props: Sentdm::TemplateDefinition::Button::Props,
|
|
117
|
+
?type: String
|
|
118
|
+
) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> {
|
|
121
|
+
id: Integer,
|
|
122
|
+
props: Sentdm::TemplateDefinition::Button::Props,
|
|
123
|
+
type: String
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type props =
|
|
127
|
+
{
|
|
128
|
+
active_for: Integer?,
|
|
129
|
+
autofill_text: String?,
|
|
130
|
+
country_code: String?,
|
|
131
|
+
offer_code: String?,
|
|
132
|
+
otp_type: String?,
|
|
133
|
+
package_name: String?,
|
|
134
|
+
phone_number: String?,
|
|
135
|
+
quick_reply_type: String?,
|
|
136
|
+
signature_hash: String?,
|
|
137
|
+
text: String?,
|
|
138
|
+
url: String?,
|
|
139
|
+
url_type: String?
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
class Props < Sentdm::Internal::Type::BaseModel
|
|
143
|
+
attr_accessor active_for: Integer?
|
|
144
|
+
|
|
145
|
+
attr_accessor autofill_text: String?
|
|
146
|
+
|
|
147
|
+
attr_accessor country_code: String?
|
|
148
|
+
|
|
149
|
+
attr_accessor offer_code: String?
|
|
150
|
+
|
|
151
|
+
attr_accessor otp_type: String?
|
|
152
|
+
|
|
153
|
+
attr_accessor package_name: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor phone_number: String?
|
|
156
|
+
|
|
157
|
+
attr_accessor quick_reply_type: String?
|
|
158
|
+
|
|
159
|
+
attr_accessor signature_hash: String?
|
|
160
|
+
|
|
161
|
+
attr_accessor text: String?
|
|
162
|
+
|
|
163
|
+
attr_accessor url: String?
|
|
164
|
+
|
|
165
|
+
attr_accessor url_type: String?
|
|
166
|
+
|
|
167
|
+
def initialize: (
|
|
168
|
+
?active_for: Integer?,
|
|
169
|
+
?autofill_text: String?,
|
|
170
|
+
?country_code: String?,
|
|
171
|
+
?offer_code: String?,
|
|
172
|
+
?otp_type: String?,
|
|
173
|
+
?package_name: String?,
|
|
174
|
+
?phone_number: String?,
|
|
175
|
+
?quick_reply_type: String?,
|
|
176
|
+
?signature_hash: String?,
|
|
177
|
+
?text: String?,
|
|
178
|
+
?url: String?,
|
|
179
|
+
?url_type: String?
|
|
180
|
+
) -> void
|
|
181
|
+
|
|
182
|
+
def to_hash: -> {
|
|
183
|
+
active_for: Integer?,
|
|
184
|
+
autofill_text: String?,
|
|
185
|
+
country_code: String?,
|
|
186
|
+
offer_code: String?,
|
|
187
|
+
otp_type: String?,
|
|
188
|
+
package_name: String?,
|
|
189
|
+
phone_number: String?,
|
|
190
|
+
quick_reply_type: String?,
|
|
191
|
+
signature_hash: String?,
|
|
192
|
+
text: String?,
|
|
193
|
+
url: String?,
|
|
194
|
+
url_type: String?
|
|
195
|
+
}
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
type footer =
|
|
200
|
+
{
|
|
201
|
+
template: String,
|
|
202
|
+
type: String?,
|
|
203
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
class Footer < Sentdm::Internal::Type::BaseModel
|
|
207
|
+
attr_reader template: String?
|
|
208
|
+
|
|
209
|
+
def template=: (String) -> String
|
|
210
|
+
|
|
211
|
+
attr_accessor type: String?
|
|
212
|
+
|
|
213
|
+
attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
|
|
214
|
+
|
|
215
|
+
def initialize: (
|
|
216
|
+
?template: String,
|
|
217
|
+
?type: String?,
|
|
218
|
+
?variables: ::Array[Sentdm::TemplateVariable]?
|
|
219
|
+
) -> void
|
|
220
|
+
|
|
221
|
+
def to_hash: -> {
|
|
222
|
+
template: String,
|
|
223
|
+
type: String?,
|
|
224
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
225
|
+
}
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
type header =
|
|
229
|
+
{
|
|
230
|
+
template: String,
|
|
231
|
+
type: String?,
|
|
232
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
class Header < Sentdm::Internal::Type::BaseModel
|
|
236
|
+
attr_reader template: String?
|
|
237
|
+
|
|
238
|
+
def template=: (String) -> String
|
|
239
|
+
|
|
240
|
+
attr_accessor type: String?
|
|
241
|
+
|
|
242
|
+
attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
|
|
243
|
+
|
|
244
|
+
def initialize: (
|
|
245
|
+
?template: String,
|
|
246
|
+
?type: String?,
|
|
247
|
+
?variables: ::Array[Sentdm::TemplateVariable]?
|
|
248
|
+
) -> void
|
|
249
|
+
|
|
250
|
+
def to_hash: -> {
|
|
251
|
+
template: String,
|
|
252
|
+
type: String?,
|
|
253
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
254
|
+
}
|
|
255
|
+
end
|
|
43
256
|
end
|
|
44
257
|
end
|
|
45
258
|
end
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -3,7 +3,7 @@ module Sentdm
|
|
|
3
3
|
|
|
4
4
|
class APIMeta = Sentdm::Models::APIMeta
|
|
5
5
|
|
|
6
|
-
class
|
|
6
|
+
class APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
7
7
|
|
|
8
8
|
class APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
9
9
|
|
|
@@ -13,13 +13,11 @@ module Sentdm
|
|
|
13
13
|
|
|
14
14
|
class APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class BaseDto = Sentdm::Models::BaseDto
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
class BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
19
19
|
|
|
20
|
-
class
|
|
21
|
-
|
|
22
|
-
class Contact = Sentdm::Models::Contact
|
|
20
|
+
class BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
23
21
|
|
|
24
22
|
class ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
25
23
|
|
|
@@ -27,6 +25,8 @@ module Sentdm
|
|
|
27
25
|
|
|
28
26
|
class ContactListParams = Sentdm::Models::ContactListParams
|
|
29
27
|
|
|
28
|
+
class ContactResponse = Sentdm::Models::ContactResponse
|
|
29
|
+
|
|
30
30
|
class ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
31
31
|
|
|
32
32
|
class ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
@@ -41,11 +41,15 @@ module Sentdm
|
|
|
41
41
|
|
|
42
42
|
class MessageSendParams = Sentdm::Models::MessageSendParams
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class MutationRequestBase = Sentdm::Models::MutationRequestBase
|
|
45
|
+
|
|
46
|
+
class NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
45
47
|
|
|
46
48
|
class PaginationMeta = Sentdm::Models::PaginationMeta
|
|
47
49
|
|
|
48
|
-
class
|
|
50
|
+
class PaymentDetails = Sentdm::Models::PaymentDetails
|
|
51
|
+
|
|
52
|
+
class ProfileCompleteSetupParams = Sentdm::Models::ProfileCompleteSetupParams
|
|
49
53
|
|
|
50
54
|
class ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
51
55
|
|
|
@@ -57,22 +61,12 @@ module Sentdm
|
|
|
57
61
|
|
|
58
62
|
class ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
59
63
|
|
|
64
|
+
module Profiles = Sentdm::Models::Profiles
|
|
65
|
+
|
|
60
66
|
class ProfileSettings = Sentdm::Models::ProfileSettings
|
|
61
67
|
|
|
62
68
|
class ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
63
69
|
|
|
64
|
-
class SentDmServicesCommonContractsPocOsAuthenticationConfig = Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
65
|
-
|
|
66
|
-
class SentDmServicesCommonContractsPocOsTemplateBody = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
67
|
-
|
|
68
|
-
class SentDmServicesCommonContractsPocOsTemplateButton = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
69
|
-
|
|
70
|
-
class SentDmServicesCommonContractsPocOsTemplateButtonProps = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
71
|
-
|
|
72
|
-
class SentDmServicesCommonContractsPocOsTemplateFooter = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
73
|
-
|
|
74
|
-
class SentDmServicesCommonContractsPocOsTemplateHeader = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
75
|
-
|
|
76
70
|
module TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
77
71
|
|
|
78
72
|
module TcrVertical = Sentdm::Models::TcrVertical
|
|
@@ -7,13 +7,13 @@ module Sentdm
|
|
|
7
7
|
?idempotency_key: String,
|
|
8
8
|
?x_profile_id: String,
|
|
9
9
|
?request_options: Sentdm::request_opts
|
|
10
|
-
) -> Sentdm::
|
|
10
|
+
) -> Sentdm::APIResponseOfContact
|
|
11
11
|
|
|
12
12
|
def retrieve: (
|
|
13
13
|
String id,
|
|
14
14
|
?x_profile_id: String,
|
|
15
15
|
?request_options: Sentdm::request_opts
|
|
16
|
-
) -> Sentdm::
|
|
16
|
+
) -> Sentdm::APIResponseOfContact
|
|
17
17
|
|
|
18
18
|
def update: (
|
|
19
19
|
String id,
|
|
@@ -23,7 +23,7 @@ module Sentdm
|
|
|
23
23
|
?idempotency_key: String,
|
|
24
24
|
?x_profile_id: String,
|
|
25
25
|
?request_options: Sentdm::request_opts
|
|
26
|
-
) -> Sentdm::
|
|
26
|
+
) -> Sentdm::APIResponseOfContact
|
|
27
27
|
|
|
28
28
|
def list: (
|
|
29
29
|
page: Integer,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Numbers
|
|
4
|
+
def lookup: (
|
|
5
|
+
String phone_number,
|
|
6
|
+
?x_profile_id: String,
|
|
7
|
+
?request_options: Sentdm::request_opts
|
|
8
|
+
) -> Sentdm::Models::NumberLookupResponse
|
|
9
|
+
|
|
10
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Profiles
|
|
4
|
+
class Campaigns
|
|
5
|
+
def create: (
|
|
6
|
+
String profile_id,
|
|
7
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
8
|
+
?sandbox: bool,
|
|
9
|
+
?idempotency_key: String,
|
|
10
|
+
?x_profile_id: String,
|
|
11
|
+
?request_options: Sentdm::request_opts
|
|
12
|
+
) -> Sentdm::Profiles::APIResponseOfTcrCampaignWithUseCases
|
|
13
|
+
|
|
14
|
+
def update: (
|
|
15
|
+
String campaign_id,
|
|
16
|
+
profile_id: String,
|
|
17
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
18
|
+
?sandbox: bool,
|
|
19
|
+
?idempotency_key: String,
|
|
20
|
+
?x_profile_id: String,
|
|
21
|
+
?request_options: Sentdm::request_opts
|
|
22
|
+
) -> Sentdm::Profiles::APIResponseOfTcrCampaignWithUseCases
|
|
23
|
+
|
|
24
|
+
def list: (
|
|
25
|
+
String profile_id,
|
|
26
|
+
?x_profile_id: String,
|
|
27
|
+
?request_options: Sentdm::request_opts
|
|
28
|
+
) -> Sentdm::Models::Profiles::CampaignListResponse
|
|
29
|
+
|
|
30
|
+
def delete: (
|
|
31
|
+
String campaign_id,
|
|
32
|
+
profile_id: String,
|
|
33
|
+
body: Sentdm::Profiles::CampaignDeleteParams::Body,
|
|
34
|
+
?x_profile_id: String,
|
|
35
|
+
?request_options: Sentdm::request_opts
|
|
36
|
+
) -> nil
|
|
37
|
+
|
|
38
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Resources
|
|
3
3
|
class Profiles
|
|
4
|
+
attr_reader campaigns: Sentdm::Resources::Profiles::Campaigns
|
|
5
|
+
|
|
4
6
|
def create: (
|
|
5
7
|
?allow_contact_sharing: bool,
|
|
6
8
|
?allow_template_sharing: bool,
|
|
7
|
-
?billing_contact: Sentdm::
|
|
9
|
+
?billing_contact: Sentdm::BillingContactInfo?,
|
|
8
10
|
?billing_model: String?,
|
|
9
|
-
?brand: Sentdm::
|
|
11
|
+
?brand: Sentdm::BrandsBrandData?,
|
|
10
12
|
?description: String?,
|
|
11
13
|
?icon: String?,
|
|
12
14
|
?inherit_contacts: bool?,
|
|
@@ -14,7 +16,7 @@ module Sentdm
|
|
|
14
16
|
?inherit_tcr_campaign: bool?,
|
|
15
17
|
?inherit_templates: bool?,
|
|
16
18
|
?name: String,
|
|
17
|
-
?payment_details: Sentdm::
|
|
19
|
+
?payment_details: Sentdm::PaymentDetails?,
|
|
18
20
|
?sandbox: bool,
|
|
19
21
|
?short_name: String?,
|
|
20
22
|
?whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
@@ -34,9 +36,9 @@ module Sentdm
|
|
|
34
36
|
?allow_contact_sharing: bool?,
|
|
35
37
|
?allow_number_change_during_onboarding: bool?,
|
|
36
38
|
?allow_template_sharing: bool?,
|
|
37
|
-
?billing_contact: Sentdm::
|
|
39
|
+
?billing_contact: Sentdm::BillingContactInfo?,
|
|
38
40
|
?billing_model: String?,
|
|
39
|
-
?brand: Sentdm::
|
|
41
|
+
?brand: Sentdm::BrandsBrandData?,
|
|
40
42
|
?description: String?,
|
|
41
43
|
?icon: String?,
|
|
42
44
|
?inherit_contacts: bool?,
|
|
@@ -44,7 +46,7 @@ module Sentdm
|
|
|
44
46
|
?inherit_tcr_campaign: bool?,
|
|
45
47
|
?inherit_templates: bool?,
|
|
46
48
|
?name: String?,
|
|
47
|
-
?payment_details: Sentdm::
|
|
49
|
+
?payment_details: Sentdm::PaymentDetails?,
|
|
48
50
|
?sandbox: bool,
|
|
49
51
|
?sending_phone_number: String?,
|
|
50
52
|
?sending_phone_number_profile_id: String?,
|
|
@@ -68,7 +70,7 @@ module Sentdm
|
|
|
68
70
|
?request_options: Sentdm::request_opts
|
|
69
71
|
) -> nil
|
|
70
72
|
|
|
71
|
-
def
|
|
73
|
+
def complete_setup: (
|
|
72
74
|
String profile_id,
|
|
73
75
|
web_hook_url: String,
|
|
74
76
|
?sandbox: bool,
|