sentdm 0.19.0 → 0.20.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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +31 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/internal/type/enum.rb +25 -0
  6. data/lib/sentdm/models/api_meta.rb +34 -0
  7. data/lib/sentdm/models/api_response_of_contact.rb +46 -0
  8. data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
  9. data/lib/sentdm/models/api_response_of_user.rb +43 -0
  10. data/lib/sentdm/models/api_response_template.rb +43 -0
  11. data/lib/sentdm/models/api_response_webhook.rb +43 -0
  12. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  13. data/lib/sentdm/models/brands_brand_data.rb +38 -0
  14. data/lib/sentdm/models/contact_delete_params.rb +2 -16
  15. data/lib/sentdm/models/contact_list_response.rb +12 -278
  16. data/lib/sentdm/models/contact_response.rb +126 -0
  17. data/lib/sentdm/models/destination_country.rb +21 -0
  18. data/lib/sentdm/models/error_detail.rb +42 -0
  19. data/lib/sentdm/models/me_retrieve_response.rb +12 -204
  20. data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
  21. data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
  22. data/lib/sentdm/models/message_send_response.rb +6 -74
  23. data/lib/sentdm/models/mutation_request.rb +20 -0
  24. data/lib/sentdm/models/number_lookup_response.rb +6 -74
  25. data/lib/sentdm/models/pagination_meta.rb +80 -0
  26. data/lib/sentdm/models/payment_details.rb +44 -0
  27. data/lib/sentdm/models/profile_complete_response.rb +6 -74
  28. data/lib/sentdm/models/profile_create_params.rb +9 -423
  29. data/lib/sentdm/models/profile_delete_params.rb +2 -16
  30. data/lib/sentdm/models/profile_detail.rb +605 -0
  31. data/lib/sentdm/models/profile_list_response.rb +9 -753
  32. data/lib/sentdm/models/profile_settings.rb +66 -0
  33. data/lib/sentdm/models/profile_update_params.rb +9 -423
  34. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
  35. data/lib/sentdm/models/profiles/base_dto.rb +32 -0
  36. data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
  37. data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
  38. data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
  39. data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
  40. data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
  41. data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
  42. data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
  43. data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +248 -0
  44. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
  45. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +48 -0
  46. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
  47. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
  48. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
  49. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
  50. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
  51. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
  52. data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
  53. data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
  54. data/lib/sentdm/models/tcr_vertical.rb +36 -0
  55. data/lib/sentdm/models/template.rb +90 -0
  56. data/lib/sentdm/models/template_body_content.rb +27 -0
  57. data/lib/sentdm/models/template_create_params.rb +3 -889
  58. data/lib/sentdm/models/template_definition.rb +66 -0
  59. data/lib/sentdm/models/template_list_response.rb +12 -242
  60. data/lib/sentdm/models/template_update_params.rb +3 -889
  61. data/lib/sentdm/models/template_variable.rb +80 -0
  62. data/lib/sentdm/models/user_list_response.rb +9 -154
  63. data/lib/sentdm/models/user_remove_params.rb +2 -16
  64. data/lib/sentdm/models/user_response.rb +82 -0
  65. data/lib/sentdm/models/webhook_event_type.rb +45 -0
  66. data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
  67. data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
  68. data/lib/sentdm/models/webhook_list_response.rb +12 -247
  69. data/lib/sentdm/models/webhook_response.rb +95 -0
  70. data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
  71. data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
  72. data/lib/sentdm/models/webhook_test_response.rb +6 -74
  73. data/lib/sentdm/models.rb +77 -0
  74. data/lib/sentdm/resources/contacts.rb +6 -6
  75. data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
  76. data/lib/sentdm/resources/profiles.rb +12 -12
  77. data/lib/sentdm/resources/templates.rb +8 -8
  78. data/lib/sentdm/resources/users.rb +6 -6
  79. data/lib/sentdm/resources/webhooks.rb +8 -8
  80. data/lib/sentdm/version.rb +1 -1
  81. data/lib/sentdm.rb +40 -18
  82. data/rbi/sentdm/models/api_meta.rbi +55 -0
  83. data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
  84. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
  85. data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
  86. data/rbi/sentdm/models/api_response_template.rbi +74 -0
  87. data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
  88. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  89. data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
  90. data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
  91. data/rbi/sentdm/models/contact_list_response.rbi +16 -505
  92. data/rbi/sentdm/models/contact_response.rbi +183 -0
  93. data/rbi/sentdm/models/destination_country.rbi +32 -0
  94. data/rbi/sentdm/models/error_detail.rbi +66 -0
  95. data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
  96. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
  97. data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
  98. data/rbi/sentdm/models/message_send_response.rbi +8 -135
  99. data/rbi/sentdm/models/mutation_request.rbi +32 -0
  100. data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
  101. data/rbi/sentdm/models/pagination_meta.rbi +135 -0
  102. data/rbi/sentdm/models/payment_details.rbi +59 -0
  103. data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
  104. data/rbi/sentdm/models/profile_create_params.rbi +12 -810
  105. data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
  106. data/rbi/sentdm/models/profile_detail.rbi +874 -0
  107. data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
  108. data/rbi/sentdm/models/profile_settings.rbi +86 -0
  109. data/rbi/sentdm/models/profile_update_params.rbi +12 -810
  110. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
  111. data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
  112. data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
  113. data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
  114. data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
  115. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
  116. data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
  117. data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
  118. data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
  119. data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +425 -0
  120. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
  121. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +87 -0
  122. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -0
  123. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
  124. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +57 -0
  125. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -0
  126. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
  127. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
  128. data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
  129. data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
  130. data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
  131. data/rbi/sentdm/models/template.rbi +129 -0
  132. data/rbi/sentdm/models/template_body_content.rbi +43 -0
  133. data/rbi/sentdm/models/template_create_params.rbi +4 -1701
  134. data/rbi/sentdm/models/template_definition.rbi +164 -0
  135. data/rbi/sentdm/models/template_list_response.rbi +16 -454
  136. data/rbi/sentdm/models/template_update_params.rbi +4 -1701
  137. data/rbi/sentdm/models/template_variable.rbi +120 -0
  138. data/rbi/sentdm/models/user_list_response.rbi +14 -271
  139. data/rbi/sentdm/models/user_remove_params.rbi +2 -19
  140. data/rbi/sentdm/models/user_response.rbi +118 -0
  141. data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
  142. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
  143. data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
  144. data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
  145. data/rbi/sentdm/models/webhook_response.rbi +140 -0
  146. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
  147. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
  148. data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
  149. data/rbi/sentdm/models.rbi +77 -0
  150. data/rbi/sentdm/resources/contacts.rbi +3 -3
  151. data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
  152. data/rbi/sentdm/resources/profiles.rbi +9 -13
  153. data/rbi/sentdm/resources/templates.rbi +5 -6
  154. data/rbi/sentdm/resources/users.rbi +3 -3
  155. data/rbi/sentdm/resources/webhooks.rbi +4 -4
  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_profile_detail.rbs +39 -0
  159. data/sig/sentdm/models/api_response_of_user.rbs +39 -0
  160. data/sig/sentdm/models/api_response_template.rbs +39 -0
  161. data/sig/sentdm/models/api_response_webhook.rbs +39 -0
  162. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  163. data/sig/sentdm/models/brands_brand_data.rbs +30 -0
  164. data/sig/sentdm/models/contact_delete_params.rbs +6 -10
  165. data/sig/sentdm/models/contact_list_response.rbs +20 -256
  166. data/sig/sentdm/models/contact_response.rbs +111 -0
  167. data/sig/sentdm/models/destination_country.rbs +19 -0
  168. data/sig/sentdm/models/error_detail.rbs +39 -0
  169. data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
  170. data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
  171. data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
  172. data/sig/sentdm/models/message_send_response.rbs +9 -71
  173. data/sig/sentdm/models/mutation_request.rbs +15 -0
  174. data/sig/sentdm/models/number_lookup_response.rbs +9 -71
  175. data/sig/sentdm/models/pagination_meta.rbs +67 -0
  176. data/sig/sentdm/models/payment_details.rbs +30 -0
  177. data/sig/sentdm/models/profile_complete_response.rbs +9 -71
  178. data/sig/sentdm/models/profile_create_params.rbs +12 -363
  179. data/sig/sentdm/models/profile_delete_params.rbs +6 -10
  180. data/sig/sentdm/models/profile_detail.rbs +474 -0
  181. data/sig/sentdm/models/profile_list_response.rbs +15 -645
  182. data/sig/sentdm/models/profile_settings.rbs +50 -0
  183. data/sig/sentdm/models/profile_update_params.rbs +12 -363
  184. data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
  185. data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
  186. data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
  187. data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
  188. data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
  189. data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
  190. data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
  191. data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
  192. data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
  193. data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +299 -0
  194. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
  195. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +35 -0
  196. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -0
  197. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
  198. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +30 -0
  199. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -0
  200. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
  201. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
  202. data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
  203. data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
  204. data/sig/sentdm/models/tcr_vertical.rbs +58 -0
  205. data/sig/sentdm/models/template.rbs +79 -0
  206. data/sig/sentdm/models/template_body_content.rbs +30 -0
  207. data/sig/sentdm/models/template_create_params.rbs +6 -853
  208. data/sig/sentdm/models/template_definition.rbs +45 -0
  209. data/sig/sentdm/models/template_list_response.rbs +19 -225
  210. data/sig/sentdm/models/template_update_params.rbs +4 -851
  211. data/sig/sentdm/models/template_variable.rbs +84 -0
  212. data/sig/sentdm/models/user_list_response.rbs +15 -151
  213. data/sig/sentdm/models/user_remove_params.rbs +6 -10
  214. data/sig/sentdm/models/user_response.rbs +72 -0
  215. data/sig/sentdm/models/webhook_event_type.rbs +51 -0
  216. data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
  217. data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
  218. data/sig/sentdm/models/webhook_list_response.rbs +20 -248
  219. data/sig/sentdm/models/webhook_response.rbs +103 -0
  220. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
  221. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
  222. data/sig/sentdm/models/webhook_test_response.rbs +9 -71
  223. data/sig/sentdm/models.rbs +68 -0
  224. data/sig/sentdm/resources/contacts.rbs +3 -3
  225. data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
  226. data/sig/sentdm/resources/profiles.rbs +9 -9
  227. data/sig/sentdm/resources/templates.rbs +5 -5
  228. data/sig/sentdm/resources/users.rbs +3 -3
  229. data/sig/sentdm/resources/webhooks.rbs +4 -4
  230. metadata +121 -55
  231. data/lib/sentdm/models/contact_create_response.rb +0 -236
  232. data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
  233. data/lib/sentdm/models/contact_update_response.rb +0 -236
  234. data/lib/sentdm/models/profile_create_response.rb +0 -781
  235. data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
  236. data/lib/sentdm/models/profile_update_response.rb +0 -781
  237. data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
  238. data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
  239. data/lib/sentdm/models/template_create_response.rb +0 -197
  240. data/lib/sentdm/models/template_retrieve_response.rb +0 -197
  241. data/lib/sentdm/models/template_update_response.rb +0 -197
  242. data/lib/sentdm/models/user_invite_response.rb +0 -189
  243. data/lib/sentdm/models/user_retrieve_response.rb +0 -189
  244. data/lib/sentdm/models/user_update_role_response.rb +0 -189
  245. data/lib/sentdm/models/webhook_create_response.rb +0 -204
  246. data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
  247. data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
  248. data/lib/sentdm/models/webhook_update_response.rb +0 -204
  249. data/rbi/sentdm/models/contact_create_response.rbi +0 -390
  250. data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
  251. data/rbi/sentdm/models/contact_update_response.rbi +0 -390
  252. data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
  253. data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
  254. data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
  255. data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
  256. data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
  257. data/rbi/sentdm/models/template_create_response.rbi +0 -339
  258. data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
  259. data/rbi/sentdm/models/template_update_response.rbi +0 -339
  260. data/rbi/sentdm/models/user_invite_response.rbi +0 -323
  261. data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
  262. data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
  263. data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
  264. data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
  265. data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
  266. data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
  267. data/sig/sentdm/models/contact_create_response.rbs +0 -209
  268. data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
  269. data/sig/sentdm/models/contact_update_response.rbs +0 -209
  270. data/sig/sentdm/models/profile_create_response.rbs +0 -662
  271. data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
  272. data/sig/sentdm/models/profile_update_response.rbs +0 -662
  273. data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
  274. data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
  275. data/sig/sentdm/models/template_create_response.rbs +0 -177
  276. data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
  277. data/sig/sentdm/models/template_update_response.rbs +0 -177
  278. data/sig/sentdm/models/user_invite_response.rbs +0 -170
  279. data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
  280. data/sig/sentdm/models/user_update_role_response.rbs +0 -170
  281. data/sig/sentdm/models/webhook_create_response.rbs +0 -201
  282. data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
  283. data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
  284. data/sig/sentdm/models/webhook_update_response.rbs +0 -201
@@ -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,357 +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::ProfileUpdateParams::Brand::Compliance::brand_relationship,
197
- vertical: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::vertical,
198
- destination_countries: ::Array[Sentdm::ProfileUpdateParams::Brand::Compliance::DestinationCountry]?,
199
- expected_messaging_volume: String?,
200
- is_tcr_application: bool?,
201
- notes: String?,
202
- phone_number_prefix: String?,
203
- primary_use_case: String?
204
- }
205
-
206
- class Compliance < Sentdm::Internal::Type::BaseModel
207
- attr_accessor brand_relationship: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::brand_relationship
208
-
209
- attr_accessor vertical: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::vertical
210
-
211
- attr_accessor destination_countries: ::Array[Sentdm::ProfileUpdateParams::Brand::Compliance::DestinationCountry]?
212
-
213
- attr_accessor expected_messaging_volume: String?
214
-
215
- attr_accessor is_tcr_application: bool?
216
-
217
- attr_accessor notes: String?
218
-
219
- attr_accessor phone_number_prefix: String?
220
-
221
- attr_accessor primary_use_case: String?
222
-
223
- def initialize: (
224
- brand_relationship: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::brand_relationship,
225
- vertical: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::vertical,
226
- ?destination_countries: ::Array[Sentdm::ProfileUpdateParams::Brand::Compliance::DestinationCountry]?,
227
- ?expected_messaging_volume: String?,
228
- ?is_tcr_application: bool?,
229
- ?notes: String?,
230
- ?phone_number_prefix: String?,
231
- ?primary_use_case: String?
232
- ) -> void
233
-
234
- def to_hash: -> {
235
- brand_relationship: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::brand_relationship,
236
- vertical: Sentdm::Models::ProfileUpdateParams::Brand::Compliance::vertical,
237
- destination_countries: ::Array[Sentdm::ProfileUpdateParams::Brand::Compliance::DestinationCountry]?,
238
- expected_messaging_volume: String?,
239
- is_tcr_application: bool?,
240
- notes: String?,
241
- phone_number_prefix: String?,
242
- primary_use_case: String?
243
- }
244
-
245
- type brand_relationship =
246
- :BASIC_ACCOUNT
247
- | :MEDIUM_ACCOUNT
248
- | :LARGE_ACCOUNT
249
- | :SMALL_ACCOUNT
250
- | :KEY_ACCOUNT
251
-
252
- module BrandRelationship
253
- extend Sentdm::Internal::Type::Enum
254
-
255
- BASIC_ACCOUNT: :BASIC_ACCOUNT
256
- MEDIUM_ACCOUNT: :MEDIUM_ACCOUNT
257
- LARGE_ACCOUNT: :LARGE_ACCOUNT
258
- SMALL_ACCOUNT: :SMALL_ACCOUNT
259
- KEY_ACCOUNT: :KEY_ACCOUNT
260
-
261
- def self?.values: -> ::Array[Sentdm::Models::ProfileUpdateParams::Brand::Compliance::brand_relationship]
262
- end
263
-
264
- type vertical =
265
- :PROFESSIONAL
266
- | :REAL_ESTATE
267
- | :HEALTHCARE
268
- | :HUMAN_RESOURCES
269
- | :ENERGY
270
- | :ENTERTAINMENT
271
- | :RETAIL
272
- | :TRANSPORTATION
273
- | :AGRICULTURE
274
- | :INSURANCE
275
- | :POSTAL
276
- | :EDUCATION
277
- | :HOSPITALITY
278
- | :FINANCIAL
279
- | :POLITICAL
280
- | :GAMBLING
281
- | :LEGAL
282
- | :CONSTRUCTION
283
- | :NGO
284
- | :MANUFACTURING
285
- | :GOVERNMENT
286
- | :TECHNOLOGY
287
- | :COMMUNICATION
288
-
289
- module Vertical
290
- extend Sentdm::Internal::Type::Enum
291
-
292
- PROFESSIONAL: :PROFESSIONAL
293
- REAL_ESTATE: :REAL_ESTATE
294
- HEALTHCARE: :HEALTHCARE
295
- HUMAN_RESOURCES: :HUMAN_RESOURCES
296
- ENERGY: :ENERGY
297
- ENTERTAINMENT: :ENTERTAINMENT
298
- RETAIL: :RETAIL
299
- TRANSPORTATION: :TRANSPORTATION
300
- AGRICULTURE: :AGRICULTURE
301
- INSURANCE: :INSURANCE
302
- POSTAL: :POSTAL
303
- EDUCATION: :EDUCATION
304
- HOSPITALITY: :HOSPITALITY
305
- FINANCIAL: :FINANCIAL
306
- POLITICAL: :POLITICAL
307
- GAMBLING: :GAMBLING
308
- LEGAL: :LEGAL
309
- CONSTRUCTION: :CONSTRUCTION
310
- NGO: :NGO
311
- MANUFACTURING: :MANUFACTURING
312
- GOVERNMENT: :GOVERNMENT
313
- TECHNOLOGY: :TECHNOLOGY
314
- COMMUNICATION: :COMMUNICATION
315
-
316
- def self?.values: -> ::Array[Sentdm::Models::ProfileUpdateParams::Brand::Compliance::vertical]
317
- end
318
-
319
- type destination_country = { id: String, is_main: bool }
320
-
321
- class DestinationCountry < Sentdm::Internal::Type::BaseModel
322
- attr_reader id: String?
323
-
324
- def id=: (String) -> String
325
-
326
- attr_reader is_main: bool?
327
-
328
- def is_main=: (bool) -> bool
329
-
330
- def initialize: (?id: String, ?is_main: bool) -> void
331
-
332
- def to_hash: -> { id: String, is_main: bool }
333
- end
334
- end
335
-
336
- type contact =
337
- {
338
- name: String,
339
- business_name: String?,
340
- email: String?,
341
- phone: String?,
342
- phone_country_code: String?,
343
- role: String?
344
- }
345
-
346
- class Contact < Sentdm::Internal::Type::BaseModel
347
- attr_accessor name: String
348
-
349
- attr_accessor business_name: String?
350
-
351
- attr_accessor email: String?
352
-
353
- attr_accessor phone: String?
354
-
355
- attr_accessor phone_country_code: String?
356
-
357
- attr_accessor role: String?
358
-
359
- def initialize: (
360
- name: String,
361
- ?business_name: String?,
362
- ?email: String?,
363
- ?phone: String?,
364
- ?phone_country_code: String?,
365
- ?role: String?
366
- ) -> void
367
-
368
- def to_hash: -> {
369
- name: String,
370
- business_name: String?,
371
- email: String?,
372
- phone: String?,
373
- phone_country_code: String?,
374
- role: String?
375
- }
376
- end
377
-
378
- type business =
379
- {
380
- city: String?,
381
- country: String?,
382
- country_of_registration: String?,
383
- entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
384
- legal_name: String?,
385
- postal_code: String?,
386
- state: String?,
387
- street: String?,
388
- tax_id: String?,
389
- tax_id_type: String?,
390
- url: String?
391
- }
392
-
393
- class Business < Sentdm::Internal::Type::BaseModel
394
- attr_accessor city: String?
395
-
396
- attr_accessor country: String?
397
-
398
- attr_accessor country_of_registration: String?
399
-
400
- attr_accessor entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?
401
-
402
- attr_accessor legal_name: String?
403
-
404
- attr_accessor postal_code: String?
405
-
406
- attr_accessor state: String?
407
-
408
- attr_accessor street: String?
409
-
410
- attr_accessor tax_id: String?
411
-
412
- attr_accessor tax_id_type: String?
413
-
414
- attr_accessor url: String?
415
-
416
- def initialize: (
417
- ?city: String?,
418
- ?country: String?,
419
- ?country_of_registration: String?,
420
- ?entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
421
- ?legal_name: String?,
422
- ?postal_code: String?,
423
- ?state: String?,
424
- ?street: String?,
425
- ?tax_id: String?,
426
- ?tax_id_type: String?,
427
- ?url: String?
428
- ) -> void
429
-
430
- def to_hash: -> {
431
- city: String?,
432
- country: String?,
433
- country_of_registration: String?,
434
- entity_type: Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type?,
435
- legal_name: String?,
436
- postal_code: String?,
437
- state: String?,
438
- street: String?,
439
- tax_id: String?,
440
- tax_id_type: String?,
441
- url: String?
442
- }
443
-
444
- type entity_type =
445
- :PRIVATE_PROFIT
446
- | :PUBLIC_PROFIT
447
- | :NON_PROFIT
448
- | :SOLE_PROPRIETOR
449
- | :GOVERNMENT
450
-
451
- module EntityType
452
- extend Sentdm::Internal::Type::Enum
453
-
454
- PRIVATE_PROFIT: :PRIVATE_PROFIT
455
- PUBLIC_PROFIT: :PUBLIC_PROFIT
456
- NON_PROFIT: :NON_PROFIT
457
- SOLE_PROPRIETOR: :SOLE_PROPRIETOR
458
- GOVERNMENT: :GOVERNMENT
459
-
460
- def self?.values: -> ::Array[Sentdm::Models::ProfileUpdateParams::Brand::Business::entity_type]
461
- end
462
- end
463
- end
464
-
465
- type payment_details =
466
- { card_number: String, cvc: String, expiry: String, zip_code: String }
467
-
468
- class PaymentDetails < Sentdm::Internal::Type::BaseModel
469
- attr_accessor card_number: String
470
-
471
- attr_accessor cvc: String
472
-
473
- attr_accessor expiry: String
474
-
475
- attr_accessor zip_code: String
476
-
477
- def initialize: (
478
- card_number: String,
479
- cvc: String,
480
- expiry: String,
481
- zip_code: String
482
- ) -> void
483
-
484
- def to_hash: -> {
485
- card_number: String,
486
- cvc: String,
487
- expiry: String,
488
- zip_code: String
489
- }
490
- end
491
140
  end
492
141
  end
493
142
  end
@@ -0,0 +1,41 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type api_response_of_tcr_campaign_with_use_cases =
5
+ {
6
+ data: Sentdm::Profiles::TcrCampaignWithUseCases?,
7
+ error: Sentdm::ErrorDetail?,
8
+ meta: Sentdm::APIMeta,
9
+ success: bool
10
+ }
11
+
12
+ class APIResponseOfTcrCampaignWithUseCases < Sentdm::Internal::Type::BaseModel
13
+ attr_accessor data: Sentdm::Profiles::TcrCampaignWithUseCases?
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::TcrCampaignWithUseCases?,
27
+ ?error: Sentdm::ErrorDetail?,
28
+ ?meta: Sentdm::APIMeta,
29
+ ?success: bool
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ data: Sentdm::Profiles::TcrCampaignWithUseCases?,
34
+ error: Sentdm::ErrorDetail?,
35
+ meta: Sentdm::APIMeta,
36
+ success: bool
37
+ }
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,27 @@
1
+ module Sentdm
2
+ module Models
3
+ module Profiles
4
+ type base_dto = { id: String, created_at: Time, updated_at: Time? }
5
+
6
+ class BaseDto < Sentdm::Internal::Type::BaseModel
7
+ attr_reader id: String?
8
+
9
+ def id=: (String) -> String
10
+
11
+ attr_reader created_at: Time?
12
+
13
+ def created_at=: (Time) -> Time
14
+
15
+ attr_accessor updated_at: Time?
16
+
17
+ def initialize: (
18
+ ?id: String,
19
+ ?created_at: Time,
20
+ ?updated_at: Time?
21
+ ) -> void
22
+
23
+ def to_hash: -> { id: String, created_at: Time, updated_at: Time? }
24
+ end
25
+ end
26
+ end
27
+ end