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