sentdm 0.3.1 → 0.4.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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +9 -9
  4. data/lib/sentdm/client.rb +0 -1
  5. data/lib/sentdm/models/api_meta.rb +1 -9
  6. data/lib/sentdm/models/brand_data.rb +235 -198
  7. data/lib/sentdm/models/brand_with_kyc.rb +249 -214
  8. data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +0 -1
  9. data/lib/sentdm/models/contact_create_params.rb +13 -6
  10. data/lib/sentdm/models/contact_delete_params.rb +8 -1
  11. data/lib/sentdm/models/contact_list_params.rb +10 -2
  12. data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
  13. data/lib/sentdm/models/contact_update_params.rb +13 -6
  14. data/lib/sentdm/models/me_retrieve_params.rb +7 -1
  15. data/lib/sentdm/models/me_retrieve_response.rb +152 -7
  16. data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
  17. data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
  18. data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
  19. data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
  20. data/lib/sentdm/models/message_send_params.rb +17 -10
  21. data/lib/sentdm/models/mutation_request.rb +6 -6
  22. data/lib/sentdm/models/profile_complete_params.rb +13 -6
  23. data/lib/sentdm/models/profile_create_params.rb +192 -10
  24. data/lib/sentdm/models/profile_delete_params.rb +18 -18
  25. data/lib/sentdm/models/profile_detail.rb +144 -95
  26. data/lib/sentdm/models/profile_list_params.rb +7 -1
  27. data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
  28. data/lib/sentdm/models/profile_update_params.rb +142 -22
  29. data/lib/sentdm/models/template_create_params.rb +17 -10
  30. data/lib/sentdm/models/template_delete_params.rb +13 -6
  31. data/lib/sentdm/models/template_list_params.rb +18 -2
  32. data/lib/sentdm/models/template_retrieve_params.rb +7 -1
  33. data/lib/sentdm/models/template_update_params.rb +17 -10
  34. data/lib/sentdm/models/template_variable.rb +7 -1
  35. data/lib/sentdm/models/user_invite_params.rb +13 -6
  36. data/lib/sentdm/models/user_list_params.rb +7 -1
  37. data/lib/sentdm/models/user_remove_params.rb +17 -17
  38. data/lib/sentdm/models/user_retrieve_params.rb +7 -1
  39. data/lib/sentdm/models/user_update_role_params.rb +15 -16
  40. data/lib/sentdm/models/webhook_create_params.rb +13 -6
  41. data/lib/sentdm/models/webhook_delete_params.rb +7 -1
  42. data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
  43. data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
  44. data/lib/sentdm/models/webhook_list_params.rb +7 -1
  45. data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
  46. data/lib/sentdm/models/webhook_rotate_secret_params.rb +7 -1
  47. data/lib/sentdm/models/webhook_test_params.rb +13 -6
  48. data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
  49. data/lib/sentdm/models/webhook_update_params.rb +13 -6
  50. data/lib/sentdm/models.rb +0 -12
  51. data/lib/sentdm/resources/brands/campaigns.rb +0 -129
  52. data/lib/sentdm/resources/brands.rb +0 -112
  53. data/lib/sentdm/resources/contacts.rb +43 -20
  54. data/lib/sentdm/resources/lookup.rb +0 -21
  55. data/lib/sentdm/resources/me.rb +24 -5
  56. data/lib/sentdm/resources/messages.rb +24 -8
  57. data/lib/sentdm/resources/profiles.rb +116 -32
  58. data/lib/sentdm/resources/templates.rb +47 -24
  59. data/lib/sentdm/resources/users.rb +40 -23
  60. data/lib/sentdm/resources/webhooks.rb +92 -34
  61. data/lib/sentdm/version.rb +1 -1
  62. data/lib/sentdm.rb +1 -14
  63. data/rbi/sentdm/client.rbi +0 -1
  64. data/rbi/sentdm/models/api_meta.rbi +4 -18
  65. data/rbi/sentdm/models/brand_data.rbi +326 -203
  66. data/rbi/sentdm/models/brand_with_kyc.rbi +334 -216
  67. data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +6 -8
  68. data/rbi/sentdm/models/contact_create_params.rbi +19 -10
  69. data/rbi/sentdm/models/contact_delete_params.rbi +9 -0
  70. data/rbi/sentdm/models/contact_list_params.rbi +11 -0
  71. data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
  72. data/rbi/sentdm/models/contact_update_params.rbi +19 -10
  73. data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
  74. data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
  75. data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
  76. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
  77. data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
  78. data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
  79. data/rbi/sentdm/models/message_send_params.rbi +22 -13
  80. data/rbi/sentdm/models/mutation_request.rbi +10 -10
  81. data/rbi/sentdm/models/profile_complete_params.rbi +19 -10
  82. data/rbi/sentdm/models/profile_create_params.rbi +323 -15
  83. data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
  84. data/rbi/sentdm/models/profile_detail.rbi +184 -128
  85. data/rbi/sentdm/models/profile_list_params.rbi +16 -5
  86. data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
  87. data/rbi/sentdm/models/profile_update_params.rbi +231 -30
  88. data/rbi/sentdm/models/template_create_params.rbi +22 -13
  89. data/rbi/sentdm/models/template_delete_params.rbi +19 -10
  90. data/rbi/sentdm/models/template_list_params.rbi +19 -0
  91. data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
  92. data/rbi/sentdm/models/template_update_params.rbi +22 -13
  93. data/rbi/sentdm/models/template_variable.rbi +6 -0
  94. data/rbi/sentdm/models/user_invite_params.rbi +19 -10
  95. data/rbi/sentdm/models/user_list_params.rbi +16 -5
  96. data/rbi/sentdm/models/user_remove_params.rbi +35 -23
  97. data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
  98. data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
  99. data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
  100. data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
  101. data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
  102. data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
  103. data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
  104. data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
  105. data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +15 -1
  106. data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
  107. data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
  108. data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
  109. data/rbi/sentdm/models.rbi +0 -12
  110. data/rbi/sentdm/resources/brands/campaigns.rbi +0 -95
  111. data/rbi/sentdm/resources/brands.rbi +0 -80
  112. data/rbi/sentdm/resources/contacts.rbi +37 -12
  113. data/rbi/sentdm/resources/lookup.rbi +0 -12
  114. data/rbi/sentdm/resources/me.rbi +25 -7
  115. data/rbi/sentdm/resources/messages.rbi +17 -4
  116. data/rbi/sentdm/resources/profiles.rbi +178 -38
  117. data/rbi/sentdm/resources/templates.rbi +47 -19
  118. data/rbi/sentdm/resources/users.rbi +47 -25
  119. data/rbi/sentdm/resources/webhooks.rbi +92 -20
  120. data/sig/sentdm/models/api_meta.rbs +2 -16
  121. data/sig/sentdm/models/brand_data.rbs +188 -142
  122. data/sig/sentdm/models/brand_with_kyc.rbs +184 -133
  123. data/sig/sentdm/models/contact_create_params.rbs +16 -5
  124. data/sig/sentdm/models/contact_delete_params.rbs +11 -1
  125. data/sig/sentdm/models/contact_list_params.rbs +8 -1
  126. data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
  127. data/sig/sentdm/models/contact_update_params.rbs +13 -6
  128. data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
  129. data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
  130. data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
  131. data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
  132. data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
  133. data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
  134. data/sig/sentdm/models/message_send_params.rbs +15 -8
  135. data/sig/sentdm/models/mutation_request.rbs +5 -5
  136. data/sig/sentdm/models/profile_complete_params.rbs +13 -6
  137. data/sig/sentdm/models/profile_create_params.rbs +111 -7
  138. data/sig/sentdm/models/profile_delete_params.rbs +23 -13
  139. data/sig/sentdm/models/profile_detail.rbs +105 -84
  140. data/sig/sentdm/models/profile_list_params.rbs +14 -3
  141. data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
  142. data/sig/sentdm/models/profile_update_params.rbs +86 -17
  143. data/sig/sentdm/models/template_create_params.rbs +15 -8
  144. data/sig/sentdm/models/template_delete_params.rbs +16 -5
  145. data/sig/sentdm/models/template_list_params.rbs +13 -1
  146. data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
  147. data/sig/sentdm/models/template_update_params.rbs +15 -8
  148. data/sig/sentdm/models/template_variable.rbs +5 -0
  149. data/sig/sentdm/models/user_invite_params.rbs +13 -6
  150. data/sig/sentdm/models/user_list_params.rbs +14 -3
  151. data/sig/sentdm/models/user_remove_params.rbs +23 -13
  152. data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
  153. data/sig/sentdm/models/user_update_role_params.rbs +17 -17
  154. data/sig/sentdm/models/webhook_create_params.rbs +13 -6
  155. data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
  156. data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
  157. data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
  158. data/sig/sentdm/models/webhook_list_params.rbs +13 -1
  159. data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
  160. data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -1
  161. data/sig/sentdm/models/webhook_test_params.rbs +13 -6
  162. data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
  163. data/sig/sentdm/models/webhook_update_params.rbs +13 -6
  164. data/sig/sentdm/models.rbs +0 -12
  165. data/sig/sentdm/resources/brands/campaigns.rbs +0 -29
  166. data/sig/sentdm/resources/brands.rbs +0 -25
  167. data/sig/sentdm/resources/contacts.rbs +7 -2
  168. data/sig/sentdm/resources/lookup.rbs +0 -5
  169. data/sig/sentdm/resources/me.rbs +1 -0
  170. data/sig/sentdm/resources/messages.rbs +4 -1
  171. data/sig/sentdm/resources/profiles.rbs +19 -8
  172. data/sig/sentdm/resources/templates.rbs +9 -3
  173. data/sig/sentdm/resources/users.rbs +10 -7
  174. data/sig/sentdm/resources/webhooks.rbs +18 -5
  175. metadata +1 -40
  176. data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
  177. data/lib/sentdm/models/brand_create_params.rb +0 -41
  178. data/lib/sentdm/models/brand_delete_params.rb +0 -34
  179. data/lib/sentdm/models/brand_list_params.rb +0 -14
  180. data/lib/sentdm/models/brand_list_response.rb +0 -43
  181. data/lib/sentdm/models/brand_update_params.rb +0 -48
  182. data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
  183. data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
  184. data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
  185. data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
  186. data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
  187. data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -20
  188. data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +0 -104
  189. data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +0 -74
  190. data/rbi/sentdm/models/brand_create_params.rbi +0 -68
  191. data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
  192. data/rbi/sentdm/models/brand_list_params.rbi +0 -27
  193. data/rbi/sentdm/models/brand_list_response.rbi +0 -71
  194. data/rbi/sentdm/models/brand_update_params.rbi +0 -74
  195. data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -79
  196. data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -84
  197. data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
  198. data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
  199. data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -85
  200. data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -38
  201. data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +0 -183
  202. data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
  203. data/sig/sentdm/models/brand_create_params.rbs +0 -36
  204. data/sig/sentdm/models/brand_delete_params.rbs +0 -36
  205. data/sig/sentdm/models/brand_list_params.rbs +0 -14
  206. data/sig/sentdm/models/brand_list_response.rbs +0 -39
  207. data/sig/sentdm/models/brand_update_params.rbs +0 -45
  208. data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
  209. data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -46
  210. data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -25
  211. data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
  212. data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -52
  213. data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -23
  214. data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +0 -102
@@ -1,36 +1,46 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type profile_delete_params =
4
- { path_profile_id: String, body_profile_id: String, test_mode: bool }
4
+ {
5
+ profile_id: String,
6
+ body: Sentdm::ProfileDeleteParams::Body,
7
+ x_profile_id: String
8
+ }
5
9
  & Sentdm::Internal::Type::request_parameters
6
10
 
7
11
  class ProfileDeleteParams < Sentdm::Internal::Type::BaseModel
8
12
  extend Sentdm::Internal::Type::RequestParameters::Converter
9
13
  include Sentdm::Internal::Type::RequestParameters
10
14
 
11
- attr_accessor path_profile_id: String
12
-
13
- attr_reader body_profile_id: String?
15
+ attr_accessor profile_id: String
14
16
 
15
- def body_profile_id=: (String) -> String
17
+ attr_accessor body: Sentdm::ProfileDeleteParams::Body
16
18
 
17
- attr_reader test_mode: bool?
19
+ attr_reader x_profile_id: String?
18
20
 
19
- def test_mode=: (bool) -> bool
21
+ def x_profile_id=: (String) -> String
20
22
 
21
23
  def initialize: (
22
- path_profile_id: String,
23
- ?body_profile_id: String,
24
- ?test_mode: bool,
24
+ profile_id: String,
25
+ body: Sentdm::ProfileDeleteParams::Body,
26
+ ?x_profile_id: String,
25
27
  ?request_options: Sentdm::request_opts
26
28
  ) -> void
27
29
 
28
30
  def to_hash: -> {
29
- path_profile_id: String,
30
- body_profile_id: String,
31
- test_mode: bool,
31
+ profile_id: String,
32
+ body: Sentdm::ProfileDeleteParams::Body,
33
+ x_profile_id: String,
32
34
  request_options: Sentdm::RequestOptions
33
35
  }
36
+
37
+ type body = { }
38
+
39
+ class Body < Sentdm::Models::MutationRequest
40
+ def initialize: -> void
41
+
42
+ def to_hash: -> { }
43
+ end
34
44
  end
35
45
  end
36
46
  end
@@ -3,16 +3,30 @@ module Sentdm
3
3
  type profile_detail =
4
4
  {
5
5
  id: String,
6
+ allow_contact_sharing: bool,
7
+ allow_number_change_during_onboarding: bool?,
8
+ allow_template_sharing: bool,
9
+ billing_contact: Sentdm::ProfileDetail::BillingContact?,
10
+ billing_model: String,
11
+ brand: Sentdm::BrandWithKYC?,
6
12
  created_at: Time,
7
13
  description: String?,
8
14
  email: String?,
9
15
  icon: String?,
16
+ inherit_contacts: bool,
17
+ inherit_tcr_brand: bool,
18
+ inherit_tcr_campaign: bool,
19
+ inherit_templates: bool,
10
20
  name: String,
11
21
  organization_id: String?,
12
- settings: Sentdm::ProfileDetail::Settings,
22
+ sending_phone_number: String?,
23
+ sending_phone_number_profile_id: String?,
24
+ sending_whatsapp_number_profile_id: String?,
13
25
  short_name: String?,
14
26
  status: String,
15
- updated_at: Time?
27
+ updated_at: Time?,
28
+ waba_id: String?,
29
+ whatsapp_phone_number: String?
16
30
  }
17
31
 
18
32
  class ProfileDetail < Sentdm::Internal::Type::BaseModel
@@ -20,6 +34,24 @@ module Sentdm
20
34
 
21
35
  def id=: (String) -> String
22
36
 
37
+ attr_reader allow_contact_sharing: bool?
38
+
39
+ def allow_contact_sharing=: (bool) -> bool
40
+
41
+ attr_accessor allow_number_change_during_onboarding: bool?
42
+
43
+ attr_reader allow_template_sharing: bool?
44
+
45
+ def allow_template_sharing=: (bool) -> bool
46
+
47
+ attr_accessor billing_contact: Sentdm::ProfileDetail::BillingContact?
48
+
49
+ attr_reader billing_model: String?
50
+
51
+ def billing_model=: (String) -> String
52
+
53
+ attr_accessor brand: Sentdm::BrandWithKYC?
54
+
23
55
  attr_reader created_at: Time?
24
56
 
25
57
  def created_at=: (Time) -> Time
@@ -30,17 +62,33 @@ module Sentdm
30
62
 
31
63
  attr_accessor icon: String?
32
64
 
65
+ attr_reader inherit_contacts: bool?
66
+
67
+ def inherit_contacts=: (bool) -> bool
68
+
69
+ attr_reader inherit_tcr_brand: bool?
70
+
71
+ def inherit_tcr_brand=: (bool) -> bool
72
+
73
+ attr_reader inherit_tcr_campaign: bool?
74
+
75
+ def inherit_tcr_campaign=: (bool) -> bool
76
+
77
+ attr_reader inherit_templates: bool?
78
+
79
+ def inherit_templates=: (bool) -> bool
80
+
33
81
  attr_reader name: String?
34
82
 
35
83
  def name=: (String) -> String
36
84
 
37
85
  attr_accessor organization_id: String?
38
86
 
39
- attr_reader settings: Sentdm::ProfileDetail::Settings?
87
+ attr_accessor sending_phone_number: String?
88
+
89
+ attr_accessor sending_phone_number_profile_id: String?
40
90
 
41
- def settings=: (
42
- Sentdm::ProfileDetail::Settings
43
- ) -> Sentdm::ProfileDetail::Settings
91
+ attr_accessor sending_whatsapp_number_profile_id: String?
44
92
 
45
93
  attr_accessor short_name: String?
46
94
 
@@ -50,117 +98,90 @@ module Sentdm
50
98
 
51
99
  attr_accessor updated_at: Time?
52
100
 
101
+ attr_accessor waba_id: String?
102
+
103
+ attr_accessor whatsapp_phone_number: String?
104
+
53
105
  def initialize: (
54
106
  ?id: String,
107
+ ?allow_contact_sharing: bool,
108
+ ?allow_number_change_during_onboarding: bool?,
109
+ ?allow_template_sharing: bool,
110
+ ?billing_contact: Sentdm::ProfileDetail::BillingContact?,
111
+ ?billing_model: String,
112
+ ?brand: Sentdm::BrandWithKYC?,
55
113
  ?created_at: Time,
56
114
  ?description: String?,
57
115
  ?email: String?,
58
116
  ?icon: String?,
117
+ ?inherit_contacts: bool,
118
+ ?inherit_tcr_brand: bool,
119
+ ?inherit_tcr_campaign: bool,
120
+ ?inherit_templates: bool,
59
121
  ?name: String,
60
122
  ?organization_id: String?,
61
- ?settings: Sentdm::ProfileDetail::Settings,
123
+ ?sending_phone_number: String?,
124
+ ?sending_phone_number_profile_id: String?,
125
+ ?sending_whatsapp_number_profile_id: String?,
62
126
  ?short_name: String?,
63
127
  ?status: String,
64
- ?updated_at: Time?
128
+ ?updated_at: Time?,
129
+ ?waba_id: String?,
130
+ ?whatsapp_phone_number: String?
65
131
  ) -> void
66
132
 
67
133
  def to_hash: -> {
68
134
  id: String,
135
+ allow_contact_sharing: bool,
136
+ allow_number_change_during_onboarding: bool?,
137
+ allow_template_sharing: bool,
138
+ billing_contact: Sentdm::ProfileDetail::BillingContact?,
139
+ billing_model: String,
140
+ brand: Sentdm::BrandWithKYC?,
69
141
  created_at: Time,
70
142
  description: String?,
71
143
  email: String?,
72
144
  icon: String?,
145
+ inherit_contacts: bool,
146
+ inherit_tcr_brand: bool,
147
+ inherit_tcr_campaign: bool,
148
+ inherit_templates: bool,
73
149
  name: String,
74
150
  organization_id: String?,
75
- settings: Sentdm::ProfileDetail::Settings,
151
+ sending_phone_number: String?,
152
+ sending_phone_number_profile_id: String?,
153
+ sending_whatsapp_number_profile_id: String?,
76
154
  short_name: String?,
77
155
  status: String,
78
- updated_at: Time?
156
+ updated_at: Time?,
157
+ waba_id: String?,
158
+ whatsapp_phone_number: String?
79
159
  }
80
160
 
81
- type settings =
82
- {
83
- allow_contact_sharing: bool,
84
- allow_number_change_during_onboarding: bool?,
85
- allow_template_sharing: bool,
86
- billing_model: String,
87
- inherit_contacts: bool,
88
- inherit_tcr_brand: bool,
89
- inherit_tcr_campaign: bool,
90
- inherit_templates: bool,
91
- sending_phone_number: String?,
92
- sending_phone_number_profile_id: String?,
93
- sending_whatsapp_number_profile_id: String?,
94
- whatsapp_phone_number: String?
95
- }
96
-
97
- class Settings < Sentdm::Internal::Type::BaseModel
98
- attr_reader allow_contact_sharing: bool?
99
-
100
- def allow_contact_sharing=: (bool) -> bool
101
-
102
- attr_accessor allow_number_change_during_onboarding: bool?
103
-
104
- attr_reader allow_template_sharing: bool?
105
-
106
- def allow_template_sharing=: (bool) -> bool
107
-
108
- attr_reader billing_model: String?
109
-
110
- def billing_model=: (String) -> String
111
-
112
- attr_reader inherit_contacts: bool?
113
-
114
- def inherit_contacts=: (bool) -> bool
115
-
116
- attr_reader inherit_tcr_brand: bool?
117
-
118
- def inherit_tcr_brand=: (bool) -> bool
119
-
120
- attr_reader inherit_tcr_campaign: bool?
121
-
122
- def inherit_tcr_campaign=: (bool) -> bool
123
-
124
- attr_reader inherit_templates: bool?
125
-
126
- def inherit_templates=: (bool) -> bool
161
+ type billing_contact =
162
+ { address: String?, email: String?, name: String?, phone: String? }
127
163
 
128
- attr_accessor sending_phone_number: String?
164
+ class BillingContact < Sentdm::Internal::Type::BaseModel
165
+ attr_accessor address: String?
129
166
 
130
- attr_accessor sending_phone_number_profile_id: String?
167
+ attr_accessor email: String?
131
168
 
132
- attr_accessor sending_whatsapp_number_profile_id: String?
169
+ attr_accessor name: String?
133
170
 
134
- attr_accessor whatsapp_phone_number: String?
171
+ attr_accessor phone: String?
135
172
 
136
173
  def initialize: (
137
- ?allow_contact_sharing: bool,
138
- ?allow_number_change_during_onboarding: bool?,
139
- ?allow_template_sharing: bool,
140
- ?billing_model: String,
141
- ?inherit_contacts: bool,
142
- ?inherit_tcr_brand: bool,
143
- ?inherit_tcr_campaign: bool,
144
- ?inherit_templates: bool,
145
- ?sending_phone_number: String?,
146
- ?sending_phone_number_profile_id: String?,
147
- ?sending_whatsapp_number_profile_id: String?,
148
- ?whatsapp_phone_number: String?
174
+ ?address: String?,
175
+ ?email: String?,
176
+ ?name: String?,
177
+ ?phone: String?
149
178
  ) -> void
150
179
 
151
180
  def to_hash: -> {
152
- allow_contact_sharing: bool,
153
- allow_number_change_during_onboarding: bool?,
154
- allow_template_sharing: bool,
155
- billing_model: String,
156
- inherit_contacts: bool,
157
- inherit_tcr_brand: bool,
158
- inherit_tcr_campaign: bool,
159
- inherit_templates: bool,
160
- sending_phone_number: String?,
161
- sending_phone_number_profile_id: String?,
162
- sending_whatsapp_number_profile_id: String?,
163
- whatsapp_phone_number: String?
181
+ address: String?,
182
+ email: String?,
183
+ name: String?,
184
+ phone: String?
164
185
  }
165
186
  end
166
187
  end
@@ -1,14 +1,25 @@
1
1
  module Sentdm
2
2
  module Models
3
- type profile_list_params = { } & Sentdm::Internal::Type::request_parameters
3
+ type profile_list_params =
4
+ { x_profile_id: String } & Sentdm::Internal::Type::request_parameters
4
5
 
5
6
  class ProfileListParams < Sentdm::Internal::Type::BaseModel
6
7
  extend Sentdm::Internal::Type::RequestParameters::Converter
7
8
  include Sentdm::Internal::Type::RequestParameters
8
9
 
9
- def initialize: (?request_options: Sentdm::request_opts) -> void
10
+ attr_reader x_profile_id: String?
10
11
 
11
- def to_hash: -> { request_options: Sentdm::RequestOptions }
12
+ def x_profile_id=: (String) -> String
13
+
14
+ def initialize: (
15
+ ?x_profile_id: String,
16
+ ?request_options: Sentdm::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ x_profile_id: String,
21
+ request_options: Sentdm::RequestOptions
22
+ }
12
23
  end
13
24
  end
14
25
  end
@@ -1,7 +1,8 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type profile_retrieve_params =
4
- { profile_id: String } & Sentdm::Internal::Type::request_parameters
4
+ { profile_id: String, x_profile_id: String }
5
+ & Sentdm::Internal::Type::request_parameters
5
6
 
6
7
  class ProfileRetrieveParams < Sentdm::Internal::Type::BaseModel
7
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module Sentdm
9
10
 
10
11
  attr_accessor profile_id: String
11
12
 
13
+ attr_reader x_profile_id: String?
14
+
15
+ def x_profile_id=: (String) -> String
16
+
12
17
  def initialize: (
13
18
  profile_id: String,
19
+ ?x_profile_id: String,
14
20
  ?request_options: Sentdm::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  profile_id: String,
25
+ x_profile_id: String,
19
26
  request_options: Sentdm::RequestOptions
20
27
  }
21
28
  end
@@ -2,11 +2,13 @@ module Sentdm
2
2
  module Models
3
3
  type profile_update_params =
4
4
  {
5
- path_profile_id: String,
5
+ profile_id: String,
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
10
  billing_model: String?,
11
+ brand: Sentdm::BrandData?,
10
12
  description: String?,
11
13
  icon: String?,
12
14
  inherit_contacts: bool?,
@@ -14,14 +16,15 @@ module Sentdm
14
16
  inherit_tcr_campaign: bool?,
15
17
  inherit_templates: bool?,
16
18
  name: String?,
17
- body_profile_id: String,
19
+ payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
20
+ sandbox: bool,
18
21
  sending_phone_number: String?,
19
22
  sending_phone_number_profile_id: String?,
20
23
  sending_whatsapp_number_profile_id: String?,
21
24
  short_name: String?,
22
- test_mode: bool,
23
25
  whatsapp_phone_number: String?,
24
- idempotency_key: String
26
+ idempotency_key: String,
27
+ x_profile_id: String
25
28
  }
26
29
  & Sentdm::Internal::Type::request_parameters
27
30
 
@@ -29,7 +32,7 @@ module Sentdm
29
32
  extend Sentdm::Internal::Type::RequestParameters::Converter
30
33
  include Sentdm::Internal::Type::RequestParameters
31
34
 
32
- attr_accessor path_profile_id: String
35
+ attr_accessor profile_id: String
33
36
 
34
37
  attr_accessor allow_contact_sharing: bool?
35
38
 
@@ -37,8 +40,12 @@ module Sentdm
37
40
 
38
41
  attr_accessor allow_template_sharing: bool?
39
42
 
43
+ attr_accessor billing_contact: Sentdm::ProfileUpdateParams::BillingContact?
44
+
40
45
  attr_accessor billing_model: String?
41
46
 
47
+ attr_accessor brand: Sentdm::BrandData?
48
+
42
49
  attr_accessor description: String?
43
50
 
44
51
  attr_accessor icon: String?
@@ -53,9 +60,11 @@ module Sentdm
53
60
 
54
61
  attr_accessor name: String?
55
62
 
56
- attr_reader body_profile_id: String?
63
+ attr_accessor payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?
57
64
 
58
- def body_profile_id=: (String) -> String
65
+ attr_reader sandbox: bool?
66
+
67
+ def sandbox=: (bool) -> bool
59
68
 
60
69
  attr_accessor sending_phone_number: String?
61
70
 
@@ -65,22 +74,24 @@ module Sentdm
65
74
 
66
75
  attr_accessor short_name: String?
67
76
 
68
- attr_reader test_mode: bool?
69
-
70
- def test_mode=: (bool) -> bool
71
-
72
77
  attr_accessor whatsapp_phone_number: String?
73
78
 
74
79
  attr_reader idempotency_key: String?
75
80
 
76
81
  def idempotency_key=: (String) -> String
77
82
 
83
+ attr_reader x_profile_id: String?
84
+
85
+ def x_profile_id=: (String) -> String
86
+
78
87
  def initialize: (
79
- path_profile_id: String,
88
+ profile_id: String,
80
89
  ?allow_contact_sharing: bool?,
81
90
  ?allow_number_change_during_onboarding: bool?,
82
91
  ?allow_template_sharing: bool?,
92
+ ?billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
83
93
  ?billing_model: String?,
94
+ ?brand: Sentdm::BrandData?,
84
95
  ?description: String?,
85
96
  ?icon: String?,
86
97
  ?inherit_contacts: bool?,
@@ -88,23 +99,26 @@ module Sentdm
88
99
  ?inherit_tcr_campaign: bool?,
89
100
  ?inherit_templates: bool?,
90
101
  ?name: String?,
91
- ?body_profile_id: String,
102
+ ?payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
103
+ ?sandbox: bool,
92
104
  ?sending_phone_number: String?,
93
105
  ?sending_phone_number_profile_id: String?,
94
106
  ?sending_whatsapp_number_profile_id: String?,
95
107
  ?short_name: String?,
96
- ?test_mode: bool,
97
108
  ?whatsapp_phone_number: String?,
98
109
  ?idempotency_key: String,
110
+ ?x_profile_id: String,
99
111
  ?request_options: Sentdm::request_opts
100
112
  ) -> void
101
113
 
102
114
  def to_hash: -> {
103
- path_profile_id: String,
115
+ profile_id: String,
104
116
  allow_contact_sharing: bool?,
105
117
  allow_number_change_during_onboarding: bool?,
106
118
  allow_template_sharing: bool?,
119
+ billing_contact: Sentdm::ProfileUpdateParams::BillingContact?,
107
120
  billing_model: String?,
121
+ brand: Sentdm::BrandData?,
108
122
  description: String?,
109
123
  icon: String?,
110
124
  inherit_contacts: bool?,
@@ -112,16 +126,71 @@ module Sentdm
112
126
  inherit_tcr_campaign: bool?,
113
127
  inherit_templates: bool?,
114
128
  name: String?,
115
- body_profile_id: String,
129
+ payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?,
130
+ sandbox: bool,
116
131
  sending_phone_number: String?,
117
132
  sending_phone_number_profile_id: String?,
118
133
  sending_whatsapp_number_profile_id: String?,
119
134
  short_name: String?,
120
- test_mode: bool,
121
135
  whatsapp_phone_number: String?,
122
136
  idempotency_key: String,
137
+ x_profile_id: String,
123
138
  request_options: Sentdm::RequestOptions
124
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 payment_details =
169
+ { card_number: String, cvc: String, expiry: String, zip_code: String }
170
+
171
+ class PaymentDetails < Sentdm::Internal::Type::BaseModel
172
+ attr_accessor card_number: String
173
+
174
+ attr_accessor cvc: String
175
+
176
+ attr_accessor expiry: String
177
+
178
+ attr_accessor zip_code: String
179
+
180
+ def initialize: (
181
+ card_number: String,
182
+ cvc: String,
183
+ expiry: String,
184
+ zip_code: String
185
+ ) -> void
186
+
187
+ def to_hash: -> {
188
+ card_number: String,
189
+ cvc: String,
190
+ expiry: String,
191
+ zip_code: String
192
+ }
193
+ end
125
194
  end
126
195
  end
127
196
  end
@@ -6,9 +6,10 @@ module Sentdm
6
6
  creation_source: String?,
7
7
  definition: Sentdm::TemplateDefinition,
8
8
  language: String?,
9
+ sandbox: bool,
9
10
  submit_for_review: bool,
10
- test_mode: bool,
11
- idempotency_key: String
11
+ idempotency_key: String,
12
+ x_profile_id: String
12
13
  }
13
14
  & Sentdm::Internal::Type::request_parameters
14
15
 
@@ -28,26 +29,31 @@ module Sentdm
28
29
 
29
30
  attr_accessor language: String?
30
31
 
31
- attr_reader submit_for_review: bool?
32
+ attr_reader sandbox: bool?
32
33
 
33
- def submit_for_review=: (bool) -> bool
34
+ def sandbox=: (bool) -> bool
34
35
 
35
- attr_reader test_mode: bool?
36
+ attr_reader submit_for_review: bool?
36
37
 
37
- def test_mode=: (bool) -> bool
38
+ def submit_for_review=: (bool) -> bool
38
39
 
39
40
  attr_reader idempotency_key: String?
40
41
 
41
42
  def idempotency_key=: (String) -> String
42
43
 
44
+ attr_reader x_profile_id: String?
45
+
46
+ def x_profile_id=: (String) -> String
47
+
43
48
  def initialize: (
44
49
  ?category: String?,
45
50
  ?creation_source: String?,
46
51
  ?definition: Sentdm::TemplateDefinition,
47
52
  ?language: String?,
53
+ ?sandbox: bool,
48
54
  ?submit_for_review: bool,
49
- ?test_mode: bool,
50
55
  ?idempotency_key: String,
56
+ ?x_profile_id: String,
51
57
  ?request_options: Sentdm::request_opts
52
58
  ) -> void
53
59
 
@@ -56,9 +62,10 @@ module Sentdm
56
62
  creation_source: String?,
57
63
  definition: Sentdm::TemplateDefinition,
58
64
  language: String?,
65
+ sandbox: bool,
59
66
  submit_for_review: bool,
60
- test_mode: bool,
61
67
  idempotency_key: String,
68
+ x_profile_id: String,
62
69
  request_options: Sentdm::RequestOptions
63
70
  }
64
71
  end
@@ -1,7 +1,12 @@
1
1
  module Sentdm
2
2
  module Models
3
3
  type template_delete_params =
4
- { id: String, delete_from_meta: bool?, test_mode: bool }
4
+ {
5
+ id: String,
6
+ delete_from_meta: bool?,
7
+ sandbox: bool,
8
+ x_profile_id: String
9
+ }
5
10
  & Sentdm::Internal::Type::request_parameters
6
11
 
7
12
  class TemplateDeleteParams < Sentdm::Internal::Type::BaseModel
@@ -12,21 +17,27 @@ module Sentdm
12
17
 
13
18
  attr_accessor delete_from_meta: bool?
14
19
 
15
- attr_reader test_mode: bool?
20
+ attr_reader sandbox: bool?
21
+
22
+ def sandbox=: (bool) -> bool
23
+
24
+ attr_reader x_profile_id: String?
16
25
 
17
- def test_mode=: (bool) -> bool
26
+ def x_profile_id=: (String) -> String
18
27
 
19
28
  def initialize: (
20
29
  id: String,
21
30
  ?delete_from_meta: bool?,
22
- ?test_mode: bool,
31
+ ?sandbox: bool,
32
+ ?x_profile_id: String,
23
33
  ?request_options: Sentdm::request_opts
24
34
  ) -> void
25
35
 
26
36
  def to_hash: -> {
27
37
  id: String,
28
38
  delete_from_meta: bool?,
29
- test_mode: bool,
39
+ sandbox: bool,
40
+ x_profile_id: String,
30
41
  request_options: Sentdm::RequestOptions
31
42
  }
32
43
  end