sentdm 0.3.1 → 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.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -27
  4. data/lib/sentdm/client.rb +5 -9
  5. data/lib/sentdm/internal/type/base_model.rb +5 -5
  6. data/lib/sentdm/models/api_meta.rb +1 -9
  7. data/lib/sentdm/models/{api_response_contact.rb → api_response_of_contact.rb} +4 -4
  8. data/lib/sentdm/models/base_dto.rb +30 -0
  9. data/lib/sentdm/models/billing_contact_info.rb +47 -0
  10. data/lib/sentdm/models/brands_brand_data.rb +274 -0
  11. data/lib/sentdm/models/contact_create_params.rb +13 -6
  12. data/lib/sentdm/models/contact_delete_params.rb +9 -2
  13. data/lib/sentdm/models/contact_list_params.rb +10 -2
  14. data/lib/sentdm/models/contact_list_response.rb +3 -3
  15. data/lib/sentdm/models/{contact.rb → contact_response.rb} +1 -1
  16. data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
  17. data/lib/sentdm/models/contact_update_params.rb +13 -6
  18. data/lib/sentdm/models/me_retrieve_params.rb +7 -1
  19. data/lib/sentdm/models/me_retrieve_response.rb +152 -7
  20. data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
  21. data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
  22. data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
  23. data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
  24. data/lib/sentdm/models/message_send_params.rb +17 -10
  25. data/lib/sentdm/models/mutation_request_base.rb +20 -0
  26. data/lib/sentdm/models/{lookup_retrieve_phone_info_params.rb → number_lookup_params.rb} +9 -3
  27. data/lib/sentdm/models/{lookup_retrieve_phone_info_response.rb → number_lookup_response.rb} +21 -21
  28. data/lib/sentdm/models/payment_details.rb +44 -0
  29. data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +16 -9
  30. data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
  31. data/lib/sentdm/models/profile_create_params.rb +111 -11
  32. data/lib/sentdm/models/profile_delete_params.rb +18 -18
  33. data/lib/sentdm/models/profile_detail.rb +483 -68
  34. data/lib/sentdm/models/profile_list_params.rb +7 -1
  35. data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
  36. data/lib/sentdm/models/profile_update_params.rb +60 -22
  37. data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -6
  38. data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
  39. data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +28 -7
  40. data/lib/sentdm/models/profiles/campaign_delete_params.rb +50 -0
  41. data/lib/sentdm/models/profiles/campaign_list_params.rb +28 -0
  42. data/lib/sentdm/models/{brands → profiles}/campaign_list_response.rb +5 -5
  43. data/lib/sentdm/models/profiles/campaign_update_params.rb +64 -0
  44. data/lib/sentdm/models/{brands → profiles}/messaging_use_case_us.rb +1 -1
  45. data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
  46. data/lib/sentdm/models/template_create_params.rb +17 -10
  47. data/lib/sentdm/models/template_definition.rb +255 -15
  48. data/lib/sentdm/models/template_delete_params.rb +13 -6
  49. data/lib/sentdm/models/template_list_params.rb +18 -2
  50. data/lib/sentdm/models/template_retrieve_params.rb +7 -1
  51. data/lib/sentdm/models/template_update_params.rb +17 -10
  52. data/lib/sentdm/models/template_variable.rb +7 -1
  53. data/lib/sentdm/models/user_invite_params.rb +13 -6
  54. data/lib/sentdm/models/user_list_params.rb +7 -1
  55. data/lib/sentdm/models/user_remove_params.rb +17 -17
  56. data/lib/sentdm/models/user_retrieve_params.rb +7 -1
  57. data/lib/sentdm/models/user_update_role_params.rb +15 -16
  58. data/lib/sentdm/models/webhook_create_params.rb +13 -6
  59. data/lib/sentdm/models/webhook_delete_params.rb +7 -1
  60. data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
  61. data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
  62. data/lib/sentdm/models/webhook_list_params.rb +7 -1
  63. data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
  64. data/lib/sentdm/models/webhook_rotate_secret_params.rb +8 -2
  65. data/lib/sentdm/models/webhook_test_params.rb +13 -6
  66. data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
  67. data/lib/sentdm/models/webhook_update_params.rb +13 -6
  68. data/lib/sentdm/models.rb +14 -38
  69. data/lib/sentdm/resources/contacts.rb +49 -26
  70. data/lib/sentdm/resources/me.rb +24 -5
  71. data/lib/sentdm/resources/messages.rb +24 -8
  72. data/lib/sentdm/resources/numbers.rb +44 -0
  73. data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
  74. data/lib/sentdm/resources/profiles.rb +125 -36
  75. data/lib/sentdm/resources/templates.rb +47 -24
  76. data/lib/sentdm/resources/users.rb +40 -23
  77. data/lib/sentdm/resources/webhooks.rb +92 -34
  78. data/lib/sentdm/version.rb +1 -1
  79. data/lib/sentdm.rb +22 -35
  80. data/rbi/sentdm/client.rbi +4 -7
  81. data/rbi/sentdm/models/api_meta.rbi +4 -18
  82. data/rbi/sentdm/models/{api_response_brand_with_kyc.rbi → api_response_of_contact.rbi} +6 -6
  83. data/rbi/sentdm/models/base_dto.rbi +49 -0
  84. data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
  85. data/rbi/sentdm/models/brands_brand_data.rbi +406 -0
  86. data/rbi/sentdm/models/contact_create_params.rbi +19 -10
  87. data/rbi/sentdm/models/contact_delete_params.rbi +10 -1
  88. data/rbi/sentdm/models/contact_list_params.rbi +11 -0
  89. data/rbi/sentdm/models/contact_list_response.rbi +4 -4
  90. data/rbi/sentdm/models/{contact.rbi → contact_response.rbi} +4 -2
  91. data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
  92. data/rbi/sentdm/models/contact_update_params.rbi +19 -10
  93. data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
  94. data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
  95. data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
  96. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
  97. data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
  98. data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
  99. data/rbi/sentdm/models/message_send_params.rbi +22 -13
  100. data/rbi/sentdm/models/mutation_request_base.rbi +32 -0
  101. data/rbi/sentdm/models/{lookup_retrieve_phone_info_params.rbi → number_lookup_params.rbi} +15 -7
  102. data/rbi/sentdm/models/{lookup_retrieve_phone_info_response.rbi → number_lookup_response.rbi} +16 -33
  103. data/rbi/sentdm/models/payment_details.rbi +59 -0
  104. data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +21 -12
  105. data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
  106. data/rbi/sentdm/models/profile_create_params.rbi +189 -15
  107. data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
  108. data/rbi/sentdm/models/profile_detail.rbi +725 -111
  109. data/rbi/sentdm/models/profile_list_params.rbi +16 -5
  110. data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
  111. data/rbi/sentdm/models/profile_update_params.rbi +97 -30
  112. 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
  113. data/rbi/sentdm/models/{brands → profiles}/campaign_create_params.rbi +29 -20
  114. data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +51 -16
  115. data/rbi/sentdm/models/{brands → profiles}/campaign_delete_params.rbi +23 -12
  116. data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
  117. data/rbi/sentdm/models/{brands → profiles}/campaign_list_response.rbi +7 -5
  118. data/rbi/sentdm/models/{brands → profiles}/campaign_update_params.rbi +29 -20
  119. data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
  120. data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +35 -29
  121. data/rbi/sentdm/models/template_create_params.rbi +22 -13
  122. data/rbi/sentdm/models/template_definition.rbi +405 -74
  123. data/rbi/sentdm/models/template_delete_params.rbi +19 -10
  124. data/rbi/sentdm/models/template_list_params.rbi +19 -0
  125. data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
  126. data/rbi/sentdm/models/template_update_params.rbi +22 -13
  127. data/rbi/sentdm/models/template_variable.rbi +6 -0
  128. data/rbi/sentdm/models/user_invite_params.rbi +19 -10
  129. data/rbi/sentdm/models/user_list_params.rbi +16 -5
  130. data/rbi/sentdm/models/user_remove_params.rbi +35 -23
  131. data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
  132. data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
  133. data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
  134. data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
  135. data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
  136. data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
  137. data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
  138. data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
  139. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +16 -2
  140. data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
  141. data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
  142. data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
  143. data/rbi/sentdm/models.rbi +14 -38
  144. data/rbi/sentdm/resources/contacts.rbi +40 -15
  145. data/rbi/sentdm/resources/me.rbi +25 -7
  146. data/rbi/sentdm/resources/messages.rbi +17 -4
  147. data/rbi/sentdm/resources/numbers.rbi +32 -0
  148. data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
  149. data/rbi/sentdm/resources/profiles.rbi +179 -39
  150. data/rbi/sentdm/resources/templates.rbi +47 -19
  151. data/rbi/sentdm/resources/users.rbi +47 -25
  152. data/rbi/sentdm/resources/webhooks.rbi +92 -20
  153. data/sig/sentdm/client.rbs +2 -4
  154. data/sig/sentdm/models/api_meta.rbs +2 -16
  155. data/sig/sentdm/models/{api_response_contact.rbs → api_response_of_contact.rbs} +6 -6
  156. data/sig/sentdm/models/base_dto.rbs +25 -0
  157. data/sig/sentdm/models/billing_contact_info.rbs +30 -0
  158. data/sig/sentdm/models/brands_brand_data.rbs +210 -0
  159. data/sig/sentdm/models/contact_create_params.rbs +16 -5
  160. data/sig/sentdm/models/contact_delete_params.rbs +12 -2
  161. data/sig/sentdm/models/contact_list_params.rbs +8 -1
  162. data/sig/sentdm/models/contact_list_response.rbs +7 -5
  163. data/sig/sentdm/models/{contact.rbs → contact_response.rbs} +2 -2
  164. data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
  165. data/sig/sentdm/models/contact_update_params.rbs +13 -6
  166. data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
  167. data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
  168. data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
  169. data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
  170. data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
  171. data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
  172. data/sig/sentdm/models/message_send_params.rbs +15 -8
  173. data/sig/sentdm/models/mutation_request_base.rbs +15 -0
  174. data/sig/sentdm/models/{lookup_retrieve_phone_info_params.rbs → number_lookup_params.rbs} +10 -3
  175. data/sig/sentdm/models/{lookup_retrieve_phone_info_response.rbs → number_lookup_response.rbs} +14 -16
  176. data/sig/sentdm/models/payment_details.rbs +30 -0
  177. data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +15 -8
  178. data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
  179. data/sig/sentdm/models/profile_create_params.rbs +57 -7
  180. data/sig/sentdm/models/profile_delete_params.rbs +23 -13
  181. data/sig/sentdm/models/profile_detail.rbs +374 -68
  182. data/sig/sentdm/models/profile_list_params.rbs +14 -3
  183. data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
  184. data/sig/sentdm/models/profile_update_params.rbs +32 -17
  185. data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/api_response_of_tcr_campaign_with_use_cases.rbs} +7 -7
  186. data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
  187. data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +27 -5
  188. data/sig/sentdm/models/{brands → profiles}/campaign_delete_params.rbs +17 -10
  189. data/sig/sentdm/models/{brands → profiles}/campaign_list_params.rbs +12 -5
  190. data/sig/sentdm/models/{brands → profiles}/campaign_list_response.rbs +5 -5
  191. data/sig/sentdm/models/{brands → profiles}/campaign_update_params.rbs +22 -15
  192. data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
  193. data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
  194. data/sig/sentdm/models/template_create_params.rbs +15 -8
  195. data/sig/sentdm/models/template_definition.rbs +233 -20
  196. data/sig/sentdm/models/template_delete_params.rbs +16 -5
  197. data/sig/sentdm/models/template_list_params.rbs +13 -1
  198. data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
  199. data/sig/sentdm/models/template_update_params.rbs +15 -8
  200. data/sig/sentdm/models/template_variable.rbs +5 -0
  201. data/sig/sentdm/models/user_invite_params.rbs +13 -6
  202. data/sig/sentdm/models/user_list_params.rbs +14 -3
  203. data/sig/sentdm/models/user_remove_params.rbs +23 -13
  204. data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
  205. data/sig/sentdm/models/user_update_role_params.rbs +17 -17
  206. data/sig/sentdm/models/webhook_create_params.rbs +13 -6
  207. data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
  208. data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
  209. data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
  210. data/sig/sentdm/models/webhook_list_params.rbs +13 -1
  211. data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
  212. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +9 -2
  213. data/sig/sentdm/models/webhook_test_params.rbs +13 -6
  214. data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
  215. data/sig/sentdm/models/webhook_update_params.rbs +13 -6
  216. data/sig/sentdm/models.rbs +14 -32
  217. data/sig/sentdm/resources/contacts.rbs +10 -5
  218. data/sig/sentdm/resources/me.rbs +1 -0
  219. data/sig/sentdm/resources/messages.rbs +4 -1
  220. data/sig/sentdm/resources/{lookup.rbs → numbers.rbs} +4 -3
  221. data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
  222. data/sig/sentdm/resources/profiles.rbs +22 -9
  223. data/sig/sentdm/resources/templates.rbs +9 -3
  224. data/sig/sentdm/resources/users.rbs +10 -7
  225. data/sig/sentdm/resources/webhooks.rbs +18 -5
  226. metadata +67 -106
  227. data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
  228. data/lib/sentdm/models/brand_create_params.rb +0 -41
  229. data/lib/sentdm/models/brand_data.rb +0 -237
  230. data/lib/sentdm/models/brand_delete_params.rb +0 -34
  231. data/lib/sentdm/models/brand_list_params.rb +0 -14
  232. data/lib/sentdm/models/brand_list_response.rb +0 -43
  233. data/lib/sentdm/models/brand_update_params.rb +0 -48
  234. data/lib/sentdm/models/brand_with_kyc.rb +0 -335
  235. data/lib/sentdm/models/brands/base_dto.rb +0 -32
  236. data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
  237. data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
  238. data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
  239. data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
  240. data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -30
  241. data/lib/sentdm/models/mutation_request.rb +0 -20
  242. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
  243. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
  244. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
  245. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
  246. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
  247. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
  248. data/lib/sentdm/resources/brands/campaigns.rb +0 -145
  249. data/lib/sentdm/resources/brands.rb +0 -130
  250. data/lib/sentdm/resources/lookup.rb +0 -35
  251. data/rbi/sentdm/models/api_response_contact.rbi +0 -74
  252. data/rbi/sentdm/models/brand_create_params.rbi +0 -68
  253. data/rbi/sentdm/models/brand_data.rbi +0 -266
  254. data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
  255. data/rbi/sentdm/models/brand_list_params.rbi +0 -27
  256. data/rbi/sentdm/models/brand_list_response.rbi +0 -71
  257. data/rbi/sentdm/models/brand_update_params.rbi +0 -74
  258. data/rbi/sentdm/models/brand_with_kyc.rbi +0 -398
  259. data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
  260. data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
  261. data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -52
  262. data/rbi/sentdm/models/mutation_request.rbi +0 -32
  263. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
  264. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
  265. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -79
  266. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
  267. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -60
  268. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -62
  269. data/rbi/sentdm/resources/brands/campaigns.rbi +0 -109
  270. data/rbi/sentdm/resources/brands.rbi +0 -95
  271. data/rbi/sentdm/resources/lookup.rbi +0 -24
  272. data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
  273. data/sig/sentdm/models/brand_create_params.rbs +0 -36
  274. data/sig/sentdm/models/brand_data.rbs +0 -164
  275. data/sig/sentdm/models/brand_delete_params.rbs +0 -36
  276. data/sig/sentdm/models/brand_list_params.rbs +0 -14
  277. data/sig/sentdm/models/brand_list_response.rbs +0 -39
  278. data/sig/sentdm/models/brand_update_params.rbs +0 -45
  279. data/sig/sentdm/models/brand_with_kyc.rbs +0 -237
  280. data/sig/sentdm/models/brands/base_dto.rbs +0 -27
  281. data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
  282. data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
  283. data/sig/sentdm/models/mutation_request.rbs +0 -15
  284. data/sig/sentdm/models/profile_complete_response.rbs +0 -5
  285. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
  286. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
  287. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -38
  288. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
  289. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -32
  290. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -32
  291. data/sig/sentdm/resources/brands/campaigns.rbs +0 -38
  292. data/sig/sentdm/resources/brands.rbs +0 -34
@@ -9,6 +9,44 @@ module Sentdm
9
9
  # @return [String, nil]
10
10
  optional :id, String
11
11
 
12
+ # @!attribute allow_contact_sharing
13
+ # Whether contacts are shared across profiles in the organization
14
+ #
15
+ # @return [Boolean, nil]
16
+ optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean
17
+
18
+ # @!attribute allow_number_change_during_onboarding
19
+ # Whether number changes are allowed during onboarding
20
+ #
21
+ # @return [Boolean, nil]
22
+ optional :allow_number_change_during_onboarding, Sentdm::Internal::Type::Boolean, nil?: true
23
+
24
+ # @!attribute allow_template_sharing
25
+ # Whether templates are shared across profiles in the organization
26
+ #
27
+ # @return [Boolean, nil]
28
+ optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
29
+
30
+ # @!attribute billing_contact
31
+ # Billing contact for this profile. Present when billing_model is "profile" or
32
+ # "profile_and_organization".
33
+ #
34
+ # @return [Sentdm::Models::ProfileDetail::BillingContact, nil]
35
+ optional :billing_contact, -> { Sentdm::ProfileDetail::BillingContact }, nil?: true
36
+
37
+ # @!attribute billing_model
38
+ # Billing model: profile, organization, or profile_and_organization
39
+ #
40
+ # @return [String, nil]
41
+ optional :billing_model, String
42
+
43
+ # @!attribute brand
44
+ # Brand associated with this profile. Null if no brand has been configured yet.
45
+ # Includes KYC information and TCR registration status.
46
+ #
47
+ # @return [Sentdm::Models::ProfileDetail::Brand, nil]
48
+ optional :brand, -> { Sentdm::ProfileDetail::Brand }, nil?: true
49
+
12
50
  # @!attribute created_at
13
51
  # When the profile was created
14
52
  #
@@ -33,6 +71,30 @@ module Sentdm
33
71
  # @return [String, nil]
34
72
  optional :icon, String, nil?: true
35
73
 
74
+ # @!attribute inherit_contacts
75
+ # Whether this profile inherits contacts from the organization
76
+ #
77
+ # @return [Boolean, nil]
78
+ optional :inherit_contacts, Sentdm::Internal::Type::Boolean
79
+
80
+ # @!attribute inherit_tcr_brand
81
+ # Whether this profile inherits TCR brand from the organization
82
+ #
83
+ # @return [Boolean, nil]
84
+ optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean
85
+
86
+ # @!attribute inherit_tcr_campaign
87
+ # Whether this profile inherits TCR campaign from the organization
88
+ #
89
+ # @return [Boolean, nil]
90
+ optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean
91
+
92
+ # @!attribute inherit_templates
93
+ # Whether this profile inherits templates from the organization
94
+ #
95
+ # @return [Boolean, nil]
96
+ optional :inherit_templates, Sentdm::Internal::Type::Boolean
97
+
36
98
  # @!attribute name
37
99
  # Profile name
38
100
  #
@@ -45,14 +107,27 @@ module Sentdm
45
107
  # @return [String, nil]
46
108
  optional :organization_id, String, nil?: true
47
109
 
48
- # @!attribute settings
49
- # Profile configuration settings
110
+ # @!attribute sending_phone_number
111
+ # Direct SMS phone number
112
+ #
113
+ # @return [String, nil]
114
+ optional :sending_phone_number, String, nil?: true
115
+
116
+ # @!attribute sending_phone_number_profile_id
117
+ # Reference to another profile for SMS/Telnyx configuration
50
118
  #
51
- # @return [Sentdm::Models::ProfileDetail::Settings, nil]
52
- optional :settings, -> { Sentdm::ProfileDetail::Settings }
119
+ # @return [String, nil]
120
+ optional :sending_phone_number_profile_id, String, nil?: true
121
+
122
+ # @!attribute sending_whatsapp_number_profile_id
123
+ # Reference to another profile for WhatsApp configuration
124
+ #
125
+ # @return [String, nil]
126
+ optional :sending_whatsapp_number_profile_id, String, nil?: true
53
127
 
54
128
  # @!attribute short_name
55
- # Profile short name (abbreviation)
129
+ # Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces
130
+ # only, with at least one letter.
56
131
  #
57
132
  # @return [String, nil]
58
133
  optional :short_name, String, nil?: true
@@ -69,11 +144,39 @@ module Sentdm
69
144
  # @return [Time, nil]
70
145
  optional :updated_at, Time, nil?: true
71
146
 
72
- # @!method initialize(id: nil, created_at: nil, description: nil, email: nil, icon: nil, name: nil, organization_id: nil, settings: nil, short_name: nil, status: nil, updated_at: nil)
147
+ # @!attribute waba_id
148
+ # WhatsApp Business Account ID associated with this profile. Present whether the
149
+ # WABA is inherited from the organization or configured directly.
150
+ #
151
+ # @return [String, nil]
152
+ optional :waba_id, String, nil?: true
153
+
154
+ # @!attribute whatsapp_phone_number
155
+ # Direct WhatsApp phone number
156
+ #
157
+ # @return [String, nil]
158
+ optional :whatsapp_phone_number, String, nil?: true
159
+
160
+ # @!method initialize(id: nil, allow_contact_sharing: nil, allow_number_change_during_onboarding: nil, allow_template_sharing: nil, billing_contact: nil, billing_model: nil, brand: nil, created_at: nil, description: nil, email: nil, icon: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil, name: nil, organization_id: nil, sending_phone_number: nil, sending_phone_number_profile_id: nil, sending_whatsapp_number_profile_id: nil, short_name: nil, status: nil, updated_at: nil, waba_id: nil, whatsapp_phone_number: nil)
161
+ # Some parameter documentations has been truncated, see
162
+ # {Sentdm::Models::ProfileDetail} for more details.
163
+ #
73
164
  # Detailed profile response for v3 API
74
165
  #
75
166
  # @param id [String] Profile unique identifier
76
167
  #
168
+ # @param allow_contact_sharing [Boolean] Whether contacts are shared across profiles in the organization
169
+ #
170
+ # @param allow_number_change_during_onboarding [Boolean, nil] Whether number changes are allowed during onboarding
171
+ #
172
+ # @param allow_template_sharing [Boolean] Whether templates are shared across profiles in the organization
173
+ #
174
+ # @param billing_contact [Sentdm::Models::ProfileDetail::BillingContact, nil] Billing contact for this profile. Present when billing_model is "profile" or "pr
175
+ #
176
+ # @param billing_model [String] Billing model: profile, organization, or profile_and_organization
177
+ #
178
+ # @param brand [Sentdm::Models::ProfileDetail::Brand, nil] Brand associated with this profile. Null if no brand has been configured yet.
179
+ #
77
180
  # @param created_at [Time] When the profile was created
78
181
  #
79
182
  # @param description [String, nil] Profile description
@@ -82,118 +185,430 @@ module Sentdm
82
185
  #
83
186
  # @param icon [String, nil] Profile icon URL
84
187
  #
188
+ # @param inherit_contacts [Boolean] Whether this profile inherits contacts from the organization
189
+ #
190
+ # @param inherit_tcr_brand [Boolean] Whether this profile inherits TCR brand from the organization
191
+ #
192
+ # @param inherit_tcr_campaign [Boolean] Whether this profile inherits TCR campaign from the organization
193
+ #
194
+ # @param inherit_templates [Boolean] Whether this profile inherits templates from the organization
195
+ #
85
196
  # @param name [String] Profile name
86
197
  #
87
198
  # @param organization_id [String, nil] Parent organization ID
88
199
  #
89
- # @param settings [Sentdm::Models::ProfileDetail::Settings] Profile configuration settings
200
+ # @param sending_phone_number [String, nil] Direct SMS phone number
201
+ #
202
+ # @param sending_phone_number_profile_id [String, nil] Reference to another profile for SMS/Telnyx configuration
90
203
  #
91
- # @param short_name [String, nil] Profile short name (abbreviation)
204
+ # @param sending_whatsapp_number_profile_id [String, nil] Reference to another profile for WhatsApp configuration
205
+ #
206
+ # @param short_name [String, nil] Profile short name/abbreviation. 3–11 characters: letters, numbers, and spaces o
92
207
  #
93
208
  # @param status [String] Profile setup status: incomplete, pending_review, approved, rejected
94
209
  #
95
210
  # @param updated_at [Time, nil] When the profile was last updated
211
+ #
212
+ # @param waba_id [String, nil] WhatsApp Business Account ID associated with this profile.
213
+ #
214
+ # @param whatsapp_phone_number [String, nil] Direct WhatsApp phone number
96
215
 
97
- # @see Sentdm::Models::ProfileDetail#settings
98
- class Settings < Sentdm::Internal::Type::BaseModel
99
- # @!attribute allow_contact_sharing
100
- # Whether contacts are shared across profiles in the organization
216
+ # @see Sentdm::Models::ProfileDetail#billing_contact
217
+ class BillingContact < Sentdm::Internal::Type::BaseModel
218
+ # @!attribute address
101
219
  #
102
- # @return [Boolean, nil]
103
- optional :allow_contact_sharing, Sentdm::Internal::Type::Boolean
220
+ # @return [String, nil]
221
+ optional :address, String, nil?: true
104
222
 
105
- # @!attribute allow_number_change_during_onboarding
106
- # Whether number changes are allowed during onboarding
223
+ # @!attribute email
107
224
  #
108
- # @return [Boolean, nil]
109
- optional :allow_number_change_during_onboarding, Sentdm::Internal::Type::Boolean, nil?: true
225
+ # @return [String, nil]
226
+ optional :email, String, nil?: true
110
227
 
111
- # @!attribute allow_template_sharing
112
- # Whether templates are shared across profiles in the organization
228
+ # @!attribute name
113
229
  #
114
- # @return [Boolean, nil]
115
- optional :allow_template_sharing, Sentdm::Internal::Type::Boolean
230
+ # @return [String, nil]
231
+ optional :name, String, nil?: true
116
232
 
117
- # @!attribute billing_model
118
- # Billing model: profile, organization, or profile_and_organization
233
+ # @!attribute phone
119
234
  #
120
235
  # @return [String, nil]
121
- optional :billing_model, String
236
+ optional :phone, String, nil?: true
122
237
 
123
- # @!attribute inherit_contacts
124
- # Whether this profile inherits contacts from the organization
238
+ # @!method initialize(address: nil, email: nil, name: nil, phone: nil)
239
+ # Billing contact for this profile. Present when billing_model is "profile" or
240
+ # "profile_and_organization".
125
241
  #
126
- # @return [Boolean, nil]
127
- optional :inherit_contacts, Sentdm::Internal::Type::Boolean
242
+ # @param address [String, nil]
243
+ # @param email [String, nil]
244
+ # @param name [String, nil]
245
+ # @param phone [String, nil]
246
+ end
128
247
 
129
- # @!attribute inherit_tcr_brand
130
- # Whether this profile inherits TCR brand from the organization
248
+ # @see Sentdm::Models::ProfileDetail#brand
249
+ class Brand < Sentdm::Internal::Type::BaseModel
250
+ # @!attribute id
251
+ # Unique identifier for the brand
131
252
  #
132
- # @return [Boolean, nil]
133
- optional :inherit_tcr_brand, Sentdm::Internal::Type::Boolean
253
+ # @return [String, nil]
254
+ optional :id, String
134
255
 
135
- # @!attribute inherit_tcr_campaign
136
- # Whether this profile inherits TCR campaign from the organization
256
+ # @!attribute business
257
+ # Business details and address information
137
258
  #
138
- # @return [Boolean, nil]
139
- optional :inherit_tcr_campaign, Sentdm::Internal::Type::Boolean
259
+ # @return [Sentdm::Models::ProfileDetail::Brand::Business, nil]
260
+ optional :business, -> { Sentdm::ProfileDetail::Brand::Business }, nil?: true
140
261
 
141
- # @!attribute inherit_templates
142
- # Whether this profile inherits templates from the organization
262
+ # @!attribute compliance
263
+ # Compliance and TCR-related information
143
264
  #
144
- # @return [Boolean, nil]
145
- optional :inherit_templates, Sentdm::Internal::Type::Boolean
265
+ # @return [Sentdm::Models::ProfileDetail::Brand::Compliance, nil]
266
+ optional :compliance, -> { Sentdm::ProfileDetail::Brand::Compliance }, nil?: true
146
267
 
147
- # @!attribute sending_phone_number
148
- # Direct SMS phone number
268
+ # @!attribute contact
269
+ # Contact information for the brand
149
270
  #
150
- # @return [String, nil]
151
- optional :sending_phone_number, String, nil?: true
271
+ # @return [Sentdm::Models::ProfileDetail::Brand::Contact, nil]
272
+ optional :contact, -> { Sentdm::ProfileDetail::Brand::Contact }, nil?: true
152
273
 
153
- # @!attribute sending_phone_number_profile_id
154
- # Reference to another profile for SMS/Telnyx configuration
274
+ # @!attribute created_at
275
+ # When the brand was created
276
+ #
277
+ # @return [Time, nil]
278
+ optional :created_at, Time
279
+
280
+ # @!attribute csp_id
281
+ # CSP (Campaign Service Provider) ID
155
282
  #
156
283
  # @return [String, nil]
157
- optional :sending_phone_number_profile_id, String, nil?: true
284
+ optional :csp_id, String, nil?: true
285
+
286
+ # @!attribute identity_status
287
+ # TCR brand identity verification status
288
+ #
289
+ # @return [Symbol, Sentdm::Models::ProfileDetail::Brand::IdentityStatus, nil]
290
+ optional :identity_status, enum: -> { Sentdm::ProfileDetail::Brand::IdentityStatus }, nil?: true
291
+
292
+ # @!attribute is_inherited
293
+ # Whether this brand is inherited from the parent organization
294
+ #
295
+ # @return [Boolean, nil]
296
+ optional :is_inherited, Sentdm::Internal::Type::Boolean
297
+
298
+ # @!attribute status
299
+ # TCR brand status
300
+ #
301
+ # @return [Symbol, Sentdm::Models::ProfileDetail::Brand::Status, nil]
302
+ optional :status, enum: -> { Sentdm::ProfileDetail::Brand::Status }, nil?: true
303
+
304
+ # @!attribute submitted_at
305
+ # When the brand was submitted to TCR
306
+ #
307
+ # @return [Time, nil]
308
+ optional :submitted_at, Time, nil?: true
158
309
 
159
- # @!attribute sending_whatsapp_number_profile_id
160
- # Reference to another profile for WhatsApp configuration
310
+ # @!attribute submitted_to_tcr
311
+ # Whether this brand has been submitted to TCR
312
+ #
313
+ # @return [Boolean, nil]
314
+ optional :submitted_to_tcr, Sentdm::Internal::Type::Boolean
315
+
316
+ # @!attribute tcr_brand_id
317
+ # TCR brand ID (populated after TCR submission)
161
318
  #
162
319
  # @return [String, nil]
163
- optional :sending_whatsapp_number_profile_id, String, nil?: true
320
+ optional :tcr_brand_id, String, nil?: true
164
321
 
165
- # @!attribute whatsapp_phone_number
166
- # Direct WhatsApp phone number
322
+ # @!attribute universal_ein
323
+ # Universal EIN from TCR
167
324
  #
168
325
  # @return [String, nil]
169
- optional :whatsapp_phone_number, String, nil?: true
326
+ optional :universal_ein, String, nil?: true
170
327
 
171
- # @!method initialize(allow_contact_sharing: nil, allow_number_change_during_onboarding: nil, allow_template_sharing: nil, billing_model: nil, inherit_contacts: nil, inherit_tcr_brand: nil, inherit_tcr_campaign: nil, inherit_templates: nil, sending_phone_number: nil, sending_phone_number_profile_id: nil, sending_whatsapp_number_profile_id: nil, whatsapp_phone_number: nil)
172
- # Profile configuration settings
328
+ # @!attribute updated_at
329
+ # When the brand was last updated
330
+ #
331
+ # @return [Time, nil]
332
+ optional :updated_at, Time, nil?: true
333
+
334
+ # @!method initialize(id: nil, business: nil, compliance: nil, contact: nil, created_at: nil, csp_id: nil, identity_status: nil, is_inherited: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_brand_id: nil, universal_ein: nil, updated_at: nil)
335
+ # Brand associated with this profile. Null if no brand has been configured yet.
336
+ # Includes KYC information and TCR registration status.
337
+ #
338
+ # @param id [String] Unique identifier for the brand
339
+ #
340
+ # @param business [Sentdm::Models::ProfileDetail::Brand::Business, nil] Business details and address information
173
341
  #
174
- # @param allow_contact_sharing [Boolean] Whether contacts are shared across profiles in the organization
342
+ # @param compliance [Sentdm::Models::ProfileDetail::Brand::Compliance, nil] Compliance and TCR-related information
175
343
  #
176
- # @param allow_number_change_during_onboarding [Boolean, nil] Whether number changes are allowed during onboarding
344
+ # @param contact [Sentdm::Models::ProfileDetail::Brand::Contact, nil] Contact information for the brand
177
345
  #
178
- # @param allow_template_sharing [Boolean] Whether templates are shared across profiles in the organization
346
+ # @param created_at [Time] When the brand was created
179
347
  #
180
- # @param billing_model [String] Billing model: profile, organization, or profile_and_organization
348
+ # @param csp_id [String, nil] CSP (Campaign Service Provider) ID
181
349
  #
182
- # @param inherit_contacts [Boolean] Whether this profile inherits contacts from the organization
350
+ # @param identity_status [Symbol, Sentdm::Models::ProfileDetail::Brand::IdentityStatus, nil] TCR brand identity verification status
183
351
  #
184
- # @param inherit_tcr_brand [Boolean] Whether this profile inherits TCR brand from the organization
352
+ # @param is_inherited [Boolean] Whether this brand is inherited from the parent organization
185
353
  #
186
- # @param inherit_tcr_campaign [Boolean] Whether this profile inherits TCR campaign from the organization
354
+ # @param status [Symbol, Sentdm::Models::ProfileDetail::Brand::Status, nil] TCR brand status
187
355
  #
188
- # @param inherit_templates [Boolean] Whether this profile inherits templates from the organization
356
+ # @param submitted_at [Time, nil] When the brand was submitted to TCR
189
357
  #
190
- # @param sending_phone_number [String, nil] Direct SMS phone number
358
+ # @param submitted_to_tcr [Boolean] Whether this brand has been submitted to TCR
191
359
  #
192
- # @param sending_phone_number_profile_id [String, nil] Reference to another profile for SMS/Telnyx configuration
360
+ # @param tcr_brand_id [String, nil] TCR brand ID (populated after TCR submission)
361
+ #
362
+ # @param universal_ein [String, nil] Universal EIN from TCR
363
+ #
364
+ # @param updated_at [Time, nil] When the brand was last updated
365
+
366
+ # @see Sentdm::Models::ProfileDetail::Brand#business
367
+ class Business < Sentdm::Internal::Type::BaseModel
368
+ # @!attribute city
369
+ # City
370
+ #
371
+ # @return [String, nil]
372
+ optional :city, String, nil?: true
373
+
374
+ # @!attribute country
375
+ # Country code (e.g., US, CA)
376
+ #
377
+ # @return [String, nil]
378
+ optional :country, String, nil?: true
379
+
380
+ # @!attribute country_of_registration
381
+ # Country where the business is registered
382
+ #
383
+ # @return [String, nil]
384
+ optional :country_of_registration, String, nil?: true
385
+
386
+ # @!attribute entity_type
387
+ # Business entity type
388
+ #
389
+ # @return [String, nil]
390
+ optional :entity_type, String, nil?: true
391
+
392
+ # @!attribute legal_name
393
+ # Legal business name
394
+ #
395
+ # @return [String, nil]
396
+ optional :legal_name, String, nil?: true
397
+
398
+ # @!attribute postal_code
399
+ # Postal/ZIP code
400
+ #
401
+ # @return [String, nil]
402
+ optional :postal_code, String, nil?: true
403
+
404
+ # @!attribute state
405
+ # State/province code
406
+ #
407
+ # @return [String, nil]
408
+ optional :state, String, nil?: true
409
+
410
+ # @!attribute street
411
+ # Street address
412
+ #
413
+ # @return [String, nil]
414
+ optional :street, String, nil?: true
415
+
416
+ # @!attribute tax_id
417
+ # Tax ID/EIN number
418
+ #
419
+ # @return [String, nil]
420
+ optional :tax_id, String, nil?: true
421
+
422
+ # @!attribute tax_id_type
423
+ # Type of tax ID (e.g., us_ein, ca_bn)
424
+ #
425
+ # @return [String, nil]
426
+ optional :tax_id_type, String, nil?: true
427
+
428
+ # @!attribute url
429
+ # Business website URL
430
+ #
431
+ # @return [String, nil]
432
+ optional :url, String, nil?: true
433
+
434
+ # @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
435
+ # Business details and address information
436
+ #
437
+ # @param city [String, nil] City
438
+ #
439
+ # @param country [String, nil] Country code (e.g., US, CA)
440
+ #
441
+ # @param country_of_registration [String, nil] Country where the business is registered
442
+ #
443
+ # @param entity_type [String, nil] Business entity type
444
+ #
445
+ # @param legal_name [String, nil] Legal business name
446
+ #
447
+ # @param postal_code [String, nil] Postal/ZIP code
448
+ #
449
+ # @param state [String, nil] State/province code
450
+ #
451
+ # @param street [String, nil] Street address
452
+ #
453
+ # @param tax_id [String, nil] Tax ID/EIN number
454
+ #
455
+ # @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
456
+ #
457
+ # @param url [String, nil] Business website URL
458
+ end
459
+
460
+ # @see Sentdm::Models::ProfileDetail::Brand#compliance
461
+ class Compliance < Sentdm::Internal::Type::BaseModel
462
+ # @!attribute brand_relationship
463
+ # Brand relationship level with TCR
464
+ #
465
+ # @return [Symbol, Sentdm::Models::TcrBrandRelationship, nil]
466
+ optional :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, nil?: true
467
+
468
+ # @!attribute destination_countries
469
+ # List of destination countries for messaging
470
+ #
471
+ # @return [Array<Sentdm::Models::DestinationCountry>, nil]
472
+ optional :destination_countries, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] }
473
+
474
+ # @!attribute expected_messaging_volume
475
+ # Expected daily messaging volume
476
+ #
477
+ # @return [String, nil]
478
+ optional :expected_messaging_volume, String, nil?: true
479
+
480
+ # @!attribute is_tcr_application
481
+ # Whether this is a TCR (Campaign Registry) application
482
+ #
483
+ # @return [Boolean, nil]
484
+ optional :is_tcr_application, Sentdm::Internal::Type::Boolean
485
+
486
+ # @!attribute notes
487
+ # Additional notes about the business or use case
488
+ #
489
+ # @return [String, nil]
490
+ optional :notes, String, nil?: true
491
+
492
+ # @!attribute phone_number_prefix
493
+ # Phone number prefix for messaging (e.g., "+1")
494
+ #
495
+ # @return [String, nil]
496
+ optional :phone_number_prefix, String, nil?: true
497
+
498
+ # @!attribute primary_use_case
499
+ # Primary messaging use case description
500
+ #
501
+ # @return [String, nil]
502
+ optional :primary_use_case, String, nil?: true
503
+
504
+ # @!attribute vertical
505
+ # Business vertical/industry category
506
+ #
507
+ # @return [Symbol, Sentdm::Models::TcrVertical, nil]
508
+ optional :vertical, enum: -> { Sentdm::TcrVertical }, nil?: true
509
+
510
+ # @!method initialize(brand_relationship: nil, destination_countries: nil, expected_messaging_volume: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil, vertical: nil)
511
+ # Compliance and TCR-related information
512
+ #
513
+ # @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship, nil] Brand relationship level with TCR
514
+ #
515
+ # @param destination_countries [Array<Sentdm::Models::DestinationCountry>] List of destination countries for messaging
516
+ #
517
+ # @param expected_messaging_volume [String, nil] Expected daily messaging volume
518
+ #
519
+ # @param is_tcr_application [Boolean] Whether this is a TCR (Campaign Registry) application
520
+ #
521
+ # @param notes [String, nil] Additional notes about the business or use case
522
+ #
523
+ # @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
524
+ #
525
+ # @param primary_use_case [String, nil] Primary messaging use case description
526
+ #
527
+ # @param vertical [Symbol, Sentdm::Models::TcrVertical, nil] Business vertical/industry category
528
+ end
529
+
530
+ # @see Sentdm::Models::ProfileDetail::Brand#contact
531
+ class Contact < Sentdm::Internal::Type::BaseModel
532
+ # @!attribute business_name
533
+ # Business/brand name
534
+ #
535
+ # @return [String, nil]
536
+ optional :business_name, String, nil?: true
537
+
538
+ # @!attribute email
539
+ # Contact email address
540
+ #
541
+ # @return [String, nil]
542
+ optional :email, String, nil?: true
543
+
544
+ # @!attribute name
545
+ # Primary contact name
546
+ #
547
+ # @return [String, nil]
548
+ optional :name, String
549
+
550
+ # @!attribute phone
551
+ # Contact phone number in E.164 format
552
+ #
553
+ # @return [String, nil]
554
+ optional :phone, String, nil?: true
555
+
556
+ # @!attribute phone_country_code
557
+ # Contact phone country code (e.g., "1" for US)
558
+ #
559
+ # @return [String, nil]
560
+ optional :phone_country_code, String, nil?: true
561
+
562
+ # @!attribute role
563
+ # Contact's role in the business
564
+ #
565
+ # @return [String, nil]
566
+ optional :role, String, nil?: true
567
+
568
+ # @!method initialize(business_name: nil, email: nil, name: nil, phone: nil, phone_country_code: nil, role: nil)
569
+ # Contact information for the brand
570
+ #
571
+ # @param business_name [String, nil] Business/brand name
572
+ #
573
+ # @param email [String, nil] Contact email address
574
+ #
575
+ # @param name [String] Primary contact name
576
+ #
577
+ # @param phone [String, nil] Contact phone number in E.164 format
578
+ #
579
+ # @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
580
+ #
581
+ # @param role [String, nil] Contact's role in the business
582
+ end
583
+
584
+ # TCR brand identity verification status
193
585
  #
194
- # @param sending_whatsapp_number_profile_id [String, nil] Reference to another profile for WhatsApp configuration
586
+ # @see Sentdm::Models::ProfileDetail::Brand#identity_status
587
+ module IdentityStatus
588
+ extend Sentdm::Internal::Type::Enum
589
+
590
+ SELF_DECLARED = :SELF_DECLARED
591
+ UNVERIFIED = :UNVERIFIED
592
+ VERIFIED = :VERIFIED
593
+ VETTED_VERIFIED = :VETTED_VERIFIED
594
+
595
+ # @!method self.values
596
+ # @return [Array<Symbol>]
597
+ end
598
+
599
+ # TCR brand status
195
600
  #
196
- # @param whatsapp_phone_number [String, nil] Direct WhatsApp phone number
601
+ # @see Sentdm::Models::ProfileDetail::Brand#status
602
+ module Status
603
+ extend Sentdm::Internal::Type::Enum
604
+
605
+ ACTIVE = :ACTIVE
606
+ INACTIVE = :INACTIVE
607
+ SUSPENDED = :SUSPENDED
608
+
609
+ # @!method self.values
610
+ # @return [Array<Symbol>]
611
+ end
197
612
  end
198
613
  end
199
614
  end
@@ -7,7 +7,13 @@ module Sentdm
7
7
  extend Sentdm::Internal::Type::RequestParameters::Converter
8
8
  include Sentdm::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute x_profile_id
11
+ #
12
+ # @return [String, nil]
13
+ optional :x_profile_id, String
14
+
15
+ # @!method initialize(x_profile_id: nil, request_options: {})
16
+ # @param x_profile_id [String]
11
17
  # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -12,8 +12,14 @@ module Sentdm
12
12
  # @return [String]
13
13
  required :profile_id, String
14
14
 
15
- # @!method initialize(profile_id:, request_options: {})
15
+ # @!attribute x_profile_id
16
+ #
17
+ # @return [String, nil]
18
+ optional :x_profile_id, String
19
+
20
+ # @!method initialize(profile_id:, x_profile_id: nil, request_options: {})
16
21
  # @param profile_id [String]
22
+ # @param x_profile_id [String]
17
23
  # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
18
24
  end
19
25
  end