sentdm 0.29.0 → 0.31.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.
Files changed (298) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +55 -1
  4. data/lib/sentdm/internal/contacts_page.rb +115 -0
  5. data/lib/sentdm/internal/conversations_page.rb +115 -0
  6. data/lib/sentdm/internal/templates_page.rb +115 -0
  7. data/lib/sentdm/internal/type/base_model.rb +5 -5
  8. data/lib/sentdm/internal/webhook_events_page.rb +115 -0
  9. data/lib/sentdm/internal/webhooks_page.rb +115 -0
  10. data/lib/sentdm/models/api_meta.rb +34 -0
  11. data/lib/sentdm/models/api_response_of_contact.rb +46 -0
  12. data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
  13. data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +42 -0
  14. data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
  15. data/lib/sentdm/models/api_response_of_user.rb +43 -0
  16. data/lib/sentdm/models/api_response_template.rb +43 -0
  17. data/lib/sentdm/models/api_response_webhook.rb +43 -0
  18. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  19. data/lib/sentdm/models/brand_business_info.rb +114 -0
  20. data/lib/sentdm/models/brand_compliance_info.rb +59 -0
  21. data/lib/sentdm/models/brand_contact_info.rb +58 -0
  22. data/lib/sentdm/models/brands_brand_data.rb +34 -0
  23. data/lib/sentdm/models/contact_delete_params.rb +2 -16
  24. data/lib/sentdm/models/contact_list_params.rb +13 -13
  25. data/lib/sentdm/models/contact_message_summary.rb +76 -0
  26. data/lib/sentdm/models/contact_response.rb +140 -0
  27. data/lib/sentdm/models/conversation_list_messages_params.rb +5 -5
  28. data/lib/sentdm/models/conversation_list_params.rb +5 -5
  29. data/lib/sentdm/models/conversation_messages_list.rb +245 -0
  30. data/lib/sentdm/models/error_detail.rb +42 -0
  31. data/lib/sentdm/models/me_retrieve_response.rb +12 -242
  32. data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
  33. data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
  34. data/lib/sentdm/models/message_send_response.rb +6 -74
  35. data/lib/sentdm/models/mutation_request.rb +20 -0
  36. data/lib/sentdm/models/number_lookup_response.rb +6 -74
  37. data/lib/sentdm/models/pagination_meta.rb +84 -0
  38. data/lib/sentdm/models/payment_details.rb +40 -0
  39. data/lib/sentdm/models/profile_complete_response.rb +6 -74
  40. data/lib/sentdm/models/profile_create_params.rb +9 -345
  41. data/lib/sentdm/models/profile_delete_params.rb +2 -16
  42. data/lib/sentdm/models/profile_detail.rb +650 -0
  43. data/lib/sentdm/models/profile_list_response.rb +12 -815
  44. data/lib/sentdm/models/profile_settings.rb +85 -0
  45. data/lib/sentdm/models/profile_update_params.rb +9 -345
  46. data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
  47. data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
  48. data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
  49. data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
  50. data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
  51. data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
  52. data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
  53. data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
  54. data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
  55. data/lib/sentdm/models/template.rb +103 -0
  56. data/lib/sentdm/models/template_list_params.rb +17 -17
  57. data/lib/sentdm/models/user_list_response.rb +12 -249
  58. data/lib/sentdm/models/user_remove_params.rb +2 -16
  59. data/lib/sentdm/models/user_response.rb +94 -0
  60. data/lib/sentdm/models/webhook_event_type.rb +45 -0
  61. data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
  62. data/lib/sentdm/models/webhook_list_events_params.rb +5 -5
  63. data/lib/sentdm/models/webhook_list_events_response.rb +87 -295
  64. data/lib/sentdm/models/webhook_list_params.rb +11 -11
  65. data/lib/sentdm/models/webhook_response.rb +121 -0
  66. data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
  67. data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
  68. data/lib/sentdm/models/webhook_test_response.rb +6 -74
  69. data/lib/sentdm/models.rb +52 -0
  70. data/lib/sentdm/resources/contacts.rb +16 -15
  71. data/lib/sentdm/resources/conversations.rb +10 -8
  72. data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
  73. data/lib/sentdm/resources/profiles.rb +12 -12
  74. data/lib/sentdm/resources/templates.rb +16 -15
  75. data/lib/sentdm/resources/users.rb +6 -6
  76. data/lib/sentdm/resources/webhooks.rb +20 -18
  77. data/lib/sentdm/version.rb +1 -1
  78. data/lib/sentdm.rb +37 -25
  79. data/rbi/sentdm/internal/contacts_page.rbi +71 -0
  80. data/rbi/sentdm/internal/conversations_page.rbi +71 -0
  81. data/rbi/sentdm/internal/templates_page.rbi +71 -0
  82. data/rbi/sentdm/internal/webhook_events_page.rbi +71 -0
  83. data/rbi/sentdm/internal/webhooks_page.rbi +71 -0
  84. data/rbi/sentdm/models/api_meta.rbi +55 -0
  85. data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
  86. data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
  87. data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
  88. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
  89. data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
  90. data/rbi/sentdm/models/api_response_template.rbi +74 -0
  91. data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
  92. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  93. data/rbi/sentdm/models/brand_business_info.rbi +162 -0
  94. data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
  95. data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
  96. data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
  97. data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
  98. data/rbi/sentdm/models/contact_list_params.rbi +19 -13
  99. data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
  100. data/rbi/sentdm/models/contact_response.rbi +200 -0
  101. data/rbi/sentdm/models/conversation_list_messages_params.rbi +12 -6
  102. data/rbi/sentdm/models/conversation_list_params.rbi +16 -5
  103. data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
  104. data/rbi/sentdm/models/error_detail.rbi +66 -0
  105. data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
  106. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
  107. data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
  108. data/rbi/sentdm/models/message_send_response.rbi +8 -135
  109. data/rbi/sentdm/models/mutation_request.rbi +32 -0
  110. data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
  111. data/rbi/sentdm/models/pagination_meta.rbi +135 -0
  112. data/rbi/sentdm/models/payment_details.rbi +56 -0
  113. data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
  114. data/rbi/sentdm/models/profile_create_params.rbi +12 -546
  115. data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
  116. data/rbi/sentdm/models/profile_detail.rbi +918 -0
  117. data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
  118. data/rbi/sentdm/models/profile_settings.rbi +102 -0
  119. data/rbi/sentdm/models/profile_update_params.rbi +12 -546
  120. data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
  121. data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
  122. data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
  123. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
  124. data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
  125. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
  126. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
  127. data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
  128. data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
  129. data/rbi/sentdm/models/template.rbi +139 -0
  130. data/rbi/sentdm/models/template_list_params.rbi +22 -16
  131. data/rbi/sentdm/models/user_list_response.rbi +16 -444
  132. data/rbi/sentdm/models/user_remove_params.rbi +2 -19
  133. data/rbi/sentdm/models/user_response.rbi +131 -0
  134. data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
  135. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
  136. data/rbi/sentdm/models/webhook_list_events_params.rbi +12 -6
  137. data/rbi/sentdm/models/webhook_list_events_response.rbi +113 -564
  138. data/rbi/sentdm/models/webhook_list_params.rbi +16 -10
  139. data/rbi/sentdm/models/webhook_response.rbi +153 -0
  140. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
  141. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
  142. data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
  143. data/rbi/sentdm/models.rbi +54 -0
  144. data/rbi/sentdm/resources/contacts.rbi +10 -10
  145. data/rbi/sentdm/resources/conversations.rbi +14 -6
  146. data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
  147. data/rbi/sentdm/resources/profiles.rbi +9 -13
  148. data/rbi/sentdm/resources/templates.rbi +10 -10
  149. data/rbi/sentdm/resources/users.rbi +3 -3
  150. data/rbi/sentdm/resources/webhooks.rbi +16 -12
  151. data/sig/sentdm/internal/contacts_page.rbs +41 -0
  152. data/sig/sentdm/internal/conversations_page.rbs +41 -0
  153. data/sig/sentdm/internal/templates_page.rbs +44 -0
  154. data/sig/sentdm/internal/webhook_events_page.rbs +41 -0
  155. data/sig/sentdm/internal/webhooks_page.rbs +41 -0
  156. data/sig/sentdm/models/api_meta.rbs +27 -0
  157. data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
  158. data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
  159. data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
  160. data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
  161. data/sig/sentdm/models/api_response_of_user.rbs +39 -0
  162. data/sig/sentdm/models/api_response_template.rbs +39 -0
  163. data/sig/sentdm/models/api_response_webhook.rbs +39 -0
  164. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  165. data/sig/sentdm/models/brand_business_info.rbs +89 -0
  166. data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
  167. data/sig/sentdm/models/brand_contact_info.rbs +45 -0
  168. data/sig/sentdm/models/brands_brand_data.rbs +30 -0
  169. data/sig/sentdm/models/contact_delete_params.rbs +6 -10
  170. data/sig/sentdm/models/contact_list_params.rbs +11 -7
  171. data/sig/sentdm/models/contact_message_summary.rbs +84 -0
  172. data/sig/sentdm/models/contact_response.rbs +118 -0
  173. data/sig/sentdm/models/conversation_list_messages_params.rbs +8 -4
  174. data/sig/sentdm/models/conversation_list_params.rbs +8 -4
  175. data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
  176. data/sig/sentdm/models/error_detail.rbs +39 -0
  177. data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
  178. data/sig/sentdm/models/message_retrieve_activities_response.rbs +14 -142
  179. data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
  180. data/sig/sentdm/models/message_send_response.rbs +9 -71
  181. data/sig/sentdm/models/mutation_request.rbs +15 -0
  182. data/sig/sentdm/models/number_lookup_response.rbs +9 -71
  183. data/sig/sentdm/models/pagination_meta.rbs +67 -0
  184. data/sig/sentdm/models/payment_details.rbs +30 -0
  185. data/sig/sentdm/models/profile_complete_response.rbs +9 -71
  186. data/sig/sentdm/models/profile_create_params.rbs +12 -263
  187. data/sig/sentdm/models/profile_delete_params.rbs +6 -10
  188. data/sig/sentdm/models/profile_detail.rbs +461 -0
  189. data/sig/sentdm/models/profile_list_response.rbs +20 -606
  190. data/sig/sentdm/models/profile_settings.rbs +50 -0
  191. data/sig/sentdm/models/profile_update_params.rbs +12 -263
  192. data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
  193. data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
  194. data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
  195. data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
  196. data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
  197. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
  198. data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
  199. data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
  200. data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
  201. data/sig/sentdm/models/template.rbs +84 -0
  202. data/sig/sentdm/models/template_list_params.rbs +14 -10
  203. data/sig/sentdm/models/user_list_response.rbs +20 -224
  204. data/sig/sentdm/models/user_remove_params.rbs +6 -10
  205. data/sig/sentdm/models/user_response.rbs +79 -0
  206. data/sig/sentdm/models/webhook_event_type.rbs +51 -0
  207. data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
  208. data/sig/sentdm/models/webhook_list_events_params.rbs +8 -4
  209. data/sig/sentdm/models/webhook_list_events_response.rbs +63 -255
  210. data/sig/sentdm/models/webhook_list_params.rbs +11 -7
  211. data/sig/sentdm/models/webhook_response.rbs +110 -0
  212. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
  213. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
  214. data/sig/sentdm/models/webhook_test_response.rbs +9 -71
  215. data/sig/sentdm/models.rbs +52 -0
  216. data/sig/sentdm/resources/contacts.rbs +7 -7
  217. data/sig/sentdm/resources/conversations.rbs +6 -6
  218. data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
  219. data/sig/sentdm/resources/profiles.rbs +9 -9
  220. data/sig/sentdm/resources/templates.rbs +6 -6
  221. data/sig/sentdm/resources/users.rbs +3 -3
  222. data/sig/sentdm/resources/webhooks.rbs +10 -10
  223. metadata +113 -77
  224. data/lib/sentdm/models/contact_create_response.rb +0 -249
  225. data/lib/sentdm/models/contact_list_response.rb +0 -348
  226. data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
  227. data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
  228. data/lib/sentdm/models/contact_update_response.rb +0 -249
  229. data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
  230. data/lib/sentdm/models/conversation_list_response.rb +0 -433
  231. data/lib/sentdm/models/profile_create_response.rb +0 -760
  232. data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
  233. data/lib/sentdm/models/profile_update_response.rb +0 -760
  234. data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
  235. data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
  236. data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
  237. data/lib/sentdm/models/template_create_response.rb +0 -209
  238. data/lib/sentdm/models/template_list_response.rb +0 -311
  239. data/lib/sentdm/models/template_retrieve_response.rb +0 -209
  240. data/lib/sentdm/models/template_update_response.rb +0 -209
  241. data/lib/sentdm/models/user_invite_response.rb +0 -201
  242. data/lib/sentdm/models/user_retrieve_response.rb +0 -201
  243. data/lib/sentdm/models/user_update_role_response.rb +0 -201
  244. data/lib/sentdm/models/webhook_create_response.rb +0 -229
  245. data/lib/sentdm/models/webhook_list_response.rb +0 -329
  246. data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
  247. data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
  248. data/lib/sentdm/models/webhook_update_response.rb +0 -229
  249. data/rbi/sentdm/models/contact_create_response.rbi +0 -407
  250. data/rbi/sentdm/models/contact_list_response.rbi +0 -634
  251. data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
  252. data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
  253. data/rbi/sentdm/models/contact_update_response.rbi +0 -407
  254. data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
  255. data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
  256. data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
  257. data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
  258. data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
  259. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
  260. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
  261. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
  262. data/rbi/sentdm/models/template_create_response.rbi +0 -349
  263. data/rbi/sentdm/models/template_list_response.rbi +0 -576
  264. data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
  265. data/rbi/sentdm/models/template_update_response.rbi +0 -349
  266. data/rbi/sentdm/models/user_invite_response.rbi +0 -336
  267. data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
  268. data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
  269. data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
  270. data/rbi/sentdm/models/webhook_list_response.rbi +0 -587
  271. data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
  272. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
  273. data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
  274. data/sig/sentdm/models/contact_create_response.rbs +0 -216
  275. data/sig/sentdm/models/contact_list_response.rbs +0 -310
  276. data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
  277. data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
  278. data/sig/sentdm/models/contact_update_response.rbs +0 -216
  279. data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
  280. data/sig/sentdm/models/conversation_list_response.rbs +0 -404
  281. data/sig/sentdm/models/profile_create_response.rbs +0 -559
  282. data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
  283. data/sig/sentdm/models/profile_update_response.rbs +0 -559
  284. data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
  285. data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
  286. data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
  287. data/sig/sentdm/models/template_create_response.rbs +0 -182
  288. data/sig/sentdm/models/template_list_response.rbs +0 -276
  289. data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
  290. data/sig/sentdm/models/template_update_response.rbs +0 -182
  291. data/sig/sentdm/models/user_invite_response.rbs +0 -177
  292. data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
  293. data/sig/sentdm/models/user_update_role_response.rbs +0 -177
  294. data/sig/sentdm/models/webhook_create_response.rbs +0 -208
  295. data/sig/sentdm/models/webhook_list_response.rbs +0 -302
  296. data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
  297. data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
  298. data/sig/sentdm/models/webhook_update_response.rbs +0 -208
@@ -0,0 +1,50 @@
1
+ module Sentdm
2
+ module Models
3
+ type profile_settings =
4
+ {
5
+ allow_contact_sharing: bool?,
6
+ allow_template_sharing: bool?,
7
+ billing_model: String?,
8
+ inherit_contacts: bool?,
9
+ inherit_tcr_brand: bool?,
10
+ inherit_tcr_campaign: bool?,
11
+ inherit_templates: bool?
12
+ }
13
+
14
+ class ProfileSettings < Sentdm::Internal::Type::BaseModel
15
+ attr_accessor allow_contact_sharing: bool?
16
+
17
+ attr_accessor allow_template_sharing: bool?
18
+
19
+ attr_accessor billing_model: String?
20
+
21
+ attr_accessor inherit_contacts: bool?
22
+
23
+ attr_accessor inherit_tcr_brand: bool?
24
+
25
+ attr_accessor inherit_tcr_campaign: bool?
26
+
27
+ attr_accessor inherit_templates: bool?
28
+
29
+ def initialize: (
30
+ ?allow_contact_sharing: bool?,
31
+ ?allow_template_sharing: bool?,
32
+ ?billing_model: String?,
33
+ ?inherit_contacts: bool?,
34
+ ?inherit_tcr_brand: bool?,
35
+ ?inherit_tcr_campaign: bool?,
36
+ ?inherit_templates: bool?
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ allow_contact_sharing: bool?,
41
+ allow_template_sharing: bool?,
42
+ billing_model: String?,
43
+ inherit_contacts: bool?,
44
+ inherit_tcr_brand: bool?,
45
+ inherit_tcr_campaign: bool?,
46
+ inherit_templates: bool?
47
+ }
48
+ end
49
+ end
50
+ end
@@ -6,9 +6,9 @@ module Sentdm
6
6
  allow_contact_sharing: bool?,
7
7
  allow_number_change_during_onboarding: bool?,
8
8
  allow_template_sharing: bool?,
9
- billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
9
+ billing_contact: Sentdm::BillingContactInfo?,
10
10
  billing_model: String?,
11
- brand: Sentdm::ProfileUpdateParams::Brand?,
11
+ brand: Sentdm::BrandsBrandData?,
12
12
  description: String?,
13
13
  icon: String?,
14
14
  inherit_contacts: bool?,
@@ -16,7 +16,7 @@ module Sentdm
16
16
  inherit_tcr_campaign: bool?,
17
17
  inherit_templates: bool?,
18
18
  name: String?,
19
- payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
19
+ payment_details: Sentdm::PaymentDetails?,
20
20
  sandbox: bool,
21
21
  sending_phone_number: String?,
22
22
  sending_phone_number_profile_id: String?,
@@ -40,11 +40,11 @@ module Sentdm
40
40
 
41
41
  attr_accessor allow_template_sharing: bool?
42
42
 
43
- attr_accessor billing_contact: Sentdm::ProfileUpdateParams::BillingContact?
43
+ attr_accessor billing_contact: Sentdm::BillingContactInfo?
44
44
 
45
45
  attr_accessor billing_model: String?
46
46
 
47
- attr_accessor brand: Sentdm::ProfileUpdateParams::Brand?
47
+ attr_accessor brand: Sentdm::BrandsBrandData?
48
48
 
49
49
  attr_accessor description: String?
50
50
 
@@ -60,7 +60,7 @@ module Sentdm
60
60
 
61
61
  attr_accessor name: String?
62
62
 
63
- attr_accessor payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?
63
+ attr_accessor payment_details: Sentdm::PaymentDetails?
64
64
 
65
65
  attr_reader sandbox: bool?
66
66
 
@@ -89,9 +89,9 @@ module Sentdm
89
89
  ?allow_contact_sharing: bool?,
90
90
  ?allow_number_change_during_onboarding: bool?,
91
91
  ?allow_template_sharing: bool?,
92
- ?billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
92
+ ?billing_contact: Sentdm::BillingContactInfo?,
93
93
  ?billing_model: String?,
94
- ?brand: Sentdm::ProfileUpdateParams::Brand?,
94
+ ?brand: Sentdm::BrandsBrandData?,
95
95
  ?description: String?,
96
96
  ?icon: String?,
97
97
  ?inherit_contacts: bool?,
@@ -99,7 +99,7 @@ module Sentdm
99
99
  ?inherit_tcr_campaign: bool?,
100
100
  ?inherit_templates: bool?,
101
101
  ?name: String?,
102
- ?payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
102
+ ?payment_details: Sentdm::PaymentDetails?,
103
103
  ?sandbox: bool,
104
104
  ?sending_phone_number: String?,
105
105
  ?sending_phone_number_profile_id: String?,
@@ -116,9 +116,9 @@ module Sentdm
116
116
  allow_contact_sharing: bool?,
117
117
  allow_number_change_during_onboarding: bool?,
118
118
  allow_template_sharing: bool?,
119
- billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
119
+ billing_contact: Sentdm::BillingContactInfo?,
120
120
  billing_model: String?,
121
- brand: Sentdm::ProfileUpdateParams::Brand?,
121
+ brand: Sentdm::BrandsBrandData?,
122
122
  description: String?,
123
123
  icon: String?,
124
124
  inherit_contacts: bool?,
@@ -126,7 +126,7 @@ module Sentdm
126
126
  inherit_tcr_campaign: bool?,
127
127
  inherit_templates: bool?,
128
128
  name: String?,
129
- payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
129
+ payment_details: Sentdm::PaymentDetails?,
130
130
  sandbox: bool,
131
131
  sending_phone_number: String?,
132
132
  sending_phone_number_profile_id: String?,
@@ -137,257 +137,6 @@ module Sentdm
137
137
  x_profile_id: String,
138
138
  request_options: Sentdm::RequestOptions
139
139
  }
140
-
141
- type billing_contact =
142
- { email: String, name: String, address: String?, phone: String? }
143
-
144
- class BillingContact < Sentdm::Internal::Type::BaseModel
145
- attr_accessor email: String
146
-
147
- attr_accessor name: String
148
-
149
- attr_accessor address: String?
150
-
151
- attr_accessor phone: String?
152
-
153
- def initialize: (
154
- email: String,
155
- name: String,
156
- ?address: String?,
157
- ?phone: String?
158
- ) -> void
159
-
160
- def to_hash: -> {
161
- email: String,
162
- name: String,
163
- address: String?,
164
- phone: String?
165
- }
166
- end
167
-
168
- type brand =
169
- {
170
- compliance: Sentdm::ProfileUpdateParams::Brand::Compliance,
171
- contact: Sentdm::ProfileUpdateParams::Brand::Contact,
172
- business: Sentdm::ProfileUpdateParams::Brand::Business?
173
- }
174
-
175
- class Brand < Sentdm::Internal::Type::BaseModel
176
- attr_accessor compliance: Sentdm::ProfileUpdateParams::Brand::Compliance
177
-
178
- attr_accessor contact: Sentdm::ProfileUpdateParams::Brand::Contact
179
-
180
- attr_accessor business: Sentdm::ProfileUpdateParams::Brand::Business?
181
-
182
- def initialize: (
183
- compliance: Sentdm::ProfileUpdateParams::Brand::Compliance,
184
- contact: Sentdm::ProfileUpdateParams::Brand::Contact,
185
- ?business: Sentdm::ProfileUpdateParams::Brand::Business?
186
- ) -> void
187
-
188
- def to_hash: -> {
189
- compliance: Sentdm::ProfileUpdateParams::Brand::Compliance,
190
- contact: Sentdm::ProfileUpdateParams::Brand::Contact,
191
- business: Sentdm::ProfileUpdateParams::Brand::Business?
192
- }
193
-
194
- type compliance =
195
- {
196
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
197
- vertical: Sentdm::Models::tcr_vertical,
198
- destination_countries: ::Array[Sentdm::DestinationCountry]?,
199
- is_tcr_application: bool?,
200
- notes: String?,
201
- phone_number_prefix: String?
202
- }
203
-
204
- class Compliance < Sentdm::Internal::Type::BaseModel
205
- attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
206
-
207
- attr_accessor vertical: Sentdm::Models::tcr_vertical
208
-
209
- attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
210
-
211
- attr_accessor is_tcr_application: bool?
212
-
213
- attr_accessor notes: String?
214
-
215
- attr_accessor phone_number_prefix: String?
216
-
217
- def initialize: (
218
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
219
- vertical: Sentdm::Models::tcr_vertical,
220
- ?destination_countries: ::Array[Sentdm::DestinationCountry]?,
221
- ?is_tcr_application: bool?,
222
- ?notes: String?,
223
- ?phone_number_prefix: String?
224
- ) -> void
225
-
226
- def to_hash: -> {
227
- brand_relationship: Sentdm::Models::tcr_brand_relationship,
228
- vertical: Sentdm::Models::tcr_vertical,
229
- destination_countries: ::Array[Sentdm::DestinationCountry]?,
230
- is_tcr_application: bool?,
231
- notes: String?,
232
- phone_number_prefix: String?
233
- }
234
- end
235
-
236
- type contact =
237
- {
238
- name: String,
239
- business_name: String?,
240
- email: String?,
241
- phone: String?,
242
- phone_country_code: String?,
243
- role: String?
244
- }
245
-
246
- class Contact < Sentdm::Internal::Type::BaseModel
247
- attr_accessor name: String
248
-
249
- attr_accessor business_name: String?
250
-
251
- attr_accessor email: String?
252
-
253
- attr_accessor phone: String?
254
-
255
- attr_accessor phone_country_code: String?
256
-
257
- attr_accessor role: String?
258
-
259
- def initialize: (
260
- name: String,
261
- ?business_name: String?,
262
- ?email: String?,
263
- ?phone: String?,
264
- ?phone_country_code: String?,
265
- ?role: String?
266
- ) -> void
267
-
268
- def to_hash: -> {
269
- name: String,
270
- business_name: String?,
271
- email: String?,
272
- phone: String?,
273
- phone_country_code: String?,
274
- role: String?
275
- }
276
- end
277
-
278
- type business =
279
- {
280
- city: String?,
281
- country: String?,
282
- country_of_registration: String?,
283
- entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
284
- legal_name: String?,
285
- postal_code: String?,
286
- state: String?,
287
- street: String?,
288
- tax_id: String?,
289
- tax_id_type: String?,
290
- url: String?
291
- }
292
-
293
- class Business < Sentdm::Internal::Type::BaseModel
294
- attr_accessor city: String?
295
-
296
- attr_accessor country: String?
297
-
298
- attr_accessor country_of_registration: String?
299
-
300
- attr_accessor entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?
301
-
302
- attr_accessor legal_name: String?
303
-
304
- attr_accessor postal_code: String?
305
-
306
- attr_accessor state: String?
307
-
308
- attr_accessor street: String?
309
-
310
- attr_accessor tax_id: String?
311
-
312
- attr_accessor tax_id_type: String?
313
-
314
- attr_accessor url: String?
315
-
316
- def initialize: (
317
- ?city: String?,
318
- ?country: String?,
319
- ?country_of_registration: String?,
320
- ?entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
321
- ?legal_name: String?,
322
- ?postal_code: String?,
323
- ?state: String?,
324
- ?street: String?,
325
- ?tax_id: String?,
326
- ?tax_id_type: String?,
327
- ?url: String?
328
- ) -> void
329
-
330
- def to_hash: -> {
331
- city: String?,
332
- country: String?,
333
- country_of_registration: String?,
334
- entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
335
- legal_name: String?,
336
- postal_code: String?,
337
- state: String?,
338
- street: String?,
339
- tax_id: String?,
340
- tax_id_type: String?,
341
- url: String?
342
- }
343
-
344
- type entity_type =
345
- :PRIVATE_PROFIT
346
- | :PUBLIC_PROFIT
347
- | :NON_PROFIT
348
- | :SOLE_PROPRIETOR
349
- | :GOVERNMENT
350
-
351
- module EntityType
352
- extend Sentdm::Internal::Type::Enum
353
-
354
- PRIVATE_PROFIT: :PRIVATE_PROFIT
355
- PUBLIC_PROFIT: :PUBLIC_PROFIT
356
- NON_PROFIT: :NON_PROFIT
357
- SOLE_PROPRIETOR: :SOLE_PROPRIETOR
358
- GOVERNMENT: :GOVERNMENT
359
-
360
- def self?.values: -> ::Array[Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type]
361
- end
362
- end
363
- end
364
-
365
- type payment_details =
366
- { card_number: String, cvc: String, expiry: String, zip_code: String }
367
-
368
- class PaymentDetails < Sentdm::Internal::Type::BaseModel
369
- attr_accessor card_number: String
370
-
371
- attr_accessor cvc: String
372
-
373
- attr_accessor expiry: String
374
-
375
- attr_accessor zip_code: String
376
-
377
- def initialize: (
378
- card_number: String,
379
- cvc: String,
380
- expiry: String,
381
- zip_code: String
382
- ) -> void
383
-
384
- def to_hash: -> {
385
- card_number: String,
386
- cvc: String,
387
- expiry: String,
388
- zip_code: String
389
- }
390
- end
391
140
  end
392
141
  end
393
142
  end
@@ -0,0 +1,41 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type api_response_of_brand_campaign =
5
+ {
6
+ data: Sentdm::Profiles::BrandCampaign?,
7
+ error: Sentdm::ErrorDetail?,
8
+ meta: Sentdm::APIMeta,
9
+ success: bool
10
+ }
11
+
12
+ class APIResponseOfBrandCampaign < Sentdm::Internal::Type::BaseModel
13
+ attr_accessor data: Sentdm::Profiles::BrandCampaign?
14
+
15
+ attr_accessor error: Sentdm::ErrorDetail?
16
+
17
+ attr_reader meta: Sentdm::APIMeta?
18
+
19
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
20
+
21
+ attr_reader success: bool?
22
+
23
+ def success=: (bool) -> bool
24
+
25
+ def initialize: (
26
+ ?data: Sentdm::Profiles::BrandCampaign?,
27
+ ?error: Sentdm::ErrorDetail?,
28
+ ?meta: Sentdm::APIMeta,
29
+ ?success: bool
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ data: Sentdm::Profiles::BrandCampaign?,
34
+ error: Sentdm::ErrorDetail?,
35
+ meta: Sentdm::APIMeta,
36
+ success: bool
37
+ }
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,41 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type api_response_of_list_of_brand_campaign =
5
+ {
6
+ data: ::Array[Sentdm::Profiles::BrandCampaign]?,
7
+ error: Sentdm::ErrorDetail?,
8
+ meta: Sentdm::APIMeta,
9
+ success: bool
10
+ }
11
+
12
+ class APIResponseOfListOfBrandCampaign < Sentdm::Internal::Type::BaseModel
13
+ attr_accessor data: ::Array[Sentdm::Profiles::BrandCampaign]?
14
+
15
+ attr_accessor error: Sentdm::ErrorDetail?
16
+
17
+ attr_reader meta: Sentdm::APIMeta?
18
+
19
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
20
+
21
+ attr_reader success: bool?
22
+
23
+ def success=: (bool) -> bool
24
+
25
+ def initialize: (
26
+ ?data: ::Array[Sentdm::Profiles::BrandCampaign]?,
27
+ ?error: Sentdm::ErrorDetail?,
28
+ ?meta: Sentdm::APIMeta,
29
+ ?success: bool
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ data: ::Array[Sentdm::Profiles::BrandCampaign]?,
34
+ error: Sentdm::ErrorDetail?,
35
+ meta: Sentdm::APIMeta,
36
+ success: bool
37
+ }
38
+ end
39
+ end
40
+ end
41
+ end
@@ -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