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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +9 -9
- data/lib/sentdm/client.rb +0 -1
- data/lib/sentdm/models/api_meta.rb +1 -9
- data/lib/sentdm/models/brand_data.rb +235 -198
- data/lib/sentdm/models/brand_with_kyc.rb +249 -214
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +0 -1
- data/lib/sentdm/models/contact_create_params.rb +13 -6
- data/lib/sentdm/models/contact_delete_params.rb +8 -1
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
- data/lib/sentdm/models/contact_update_params.rb +13 -6
- data/lib/sentdm/models/me_retrieve_params.rb +7 -1
- data/lib/sentdm/models/me_retrieve_response.rb +152 -7
- data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
- data/lib/sentdm/models/message_send_params.rb +17 -10
- data/lib/sentdm/models/mutation_request.rb +6 -6
- data/lib/sentdm/models/profile_complete_params.rb +13 -6
- data/lib/sentdm/models/profile_create_params.rb +192 -10
- data/lib/sentdm/models/profile_delete_params.rb +18 -18
- data/lib/sentdm/models/profile_detail.rb +144 -95
- data/lib/sentdm/models/profile_list_params.rb +7 -1
- data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
- data/lib/sentdm/models/profile_update_params.rb +142 -22
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_delete_params.rb +13 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +17 -10
- data/lib/sentdm/models/template_variable.rb +7 -1
- data/lib/sentdm/models/user_invite_params.rb +13 -6
- data/lib/sentdm/models/user_list_params.rb +7 -1
- data/lib/sentdm/models/user_remove_params.rb +17 -17
- data/lib/sentdm/models/user_retrieve_params.rb +7 -1
- data/lib/sentdm/models/user_update_role_params.rb +15 -16
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +7 -1
- data/lib/sentdm/models/webhook_test_params.rb +13 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
- data/lib/sentdm/models/webhook_update_params.rb +13 -6
- data/lib/sentdm/models.rb +0 -12
- data/lib/sentdm/resources/brands/campaigns.rb +0 -129
- data/lib/sentdm/resources/brands.rb +0 -112
- data/lib/sentdm/resources/contacts.rb +43 -20
- data/lib/sentdm/resources/lookup.rb +0 -21
- data/lib/sentdm/resources/me.rb +24 -5
- data/lib/sentdm/resources/messages.rb +24 -8
- data/lib/sentdm/resources/profiles.rb +116 -32
- data/lib/sentdm/resources/templates.rb +47 -24
- data/lib/sentdm/resources/users.rb +40 -23
- data/lib/sentdm/resources/webhooks.rb +92 -34
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -14
- data/rbi/sentdm/client.rbi +0 -1
- data/rbi/sentdm/models/api_meta.rbi +4 -18
- data/rbi/sentdm/models/brand_data.rbi +326 -203
- data/rbi/sentdm/models/brand_with_kyc.rbi +334 -216
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +6 -8
- data/rbi/sentdm/models/contact_create_params.rbi +19 -10
- data/rbi/sentdm/models/contact_delete_params.rbi +9 -0
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/contact_update_params.rbi +19 -10
- data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
- data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
- data/rbi/sentdm/models/message_send_params.rbi +22 -13
- data/rbi/sentdm/models/mutation_request.rbi +10 -10
- data/rbi/sentdm/models/profile_complete_params.rbi +19 -10
- data/rbi/sentdm/models/profile_create_params.rbi +323 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
- data/rbi/sentdm/models/profile_detail.rbi +184 -128
- data/rbi/sentdm/models/profile_list_params.rbi +16 -5
- data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/profile_update_params.rbi +231 -30
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_delete_params.rbi +19 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/template_update_params.rbi +22 -13
- data/rbi/sentdm/models/template_variable.rbi +6 -0
- data/rbi/sentdm/models/user_invite_params.rbi +19 -10
- data/rbi/sentdm/models/user_list_params.rbi +16 -5
- data/rbi/sentdm/models/user_remove_params.rbi +35 -23
- data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +15 -1
- data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
- data/rbi/sentdm/models.rbi +0 -12
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -95
- data/rbi/sentdm/resources/brands.rbi +0 -80
- data/rbi/sentdm/resources/contacts.rbi +37 -12
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/rbi/sentdm/resources/me.rbi +25 -7
- data/rbi/sentdm/resources/messages.rbi +17 -4
- data/rbi/sentdm/resources/profiles.rbi +178 -38
- data/rbi/sentdm/resources/templates.rbi +47 -19
- data/rbi/sentdm/resources/users.rbi +47 -25
- data/rbi/sentdm/resources/webhooks.rbi +92 -20
- data/sig/sentdm/models/api_meta.rbs +2 -16
- data/sig/sentdm/models/brand_data.rbs +188 -142
- data/sig/sentdm/models/brand_with_kyc.rbs +184 -133
- data/sig/sentdm/models/contact_create_params.rbs +16 -5
- data/sig/sentdm/models/contact_delete_params.rbs +11 -1
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/contact_update_params.rbs +13 -6
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
- data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
- data/sig/sentdm/models/message_send_params.rbs +15 -8
- data/sig/sentdm/models/mutation_request.rbs +5 -5
- data/sig/sentdm/models/profile_complete_params.rbs +13 -6
- data/sig/sentdm/models/profile_create_params.rbs +111 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -13
- data/sig/sentdm/models/profile_detail.rbs +105 -84
- data/sig/sentdm/models/profile_list_params.rbs +14 -3
- data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/profile_update_params.rbs +86 -17
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_delete_params.rbs +16 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/template_update_params.rbs +15 -8
- data/sig/sentdm/models/template_variable.rbs +5 -0
- data/sig/sentdm/models/user_invite_params.rbs +13 -6
- data/sig/sentdm/models/user_list_params.rbs +14 -3
- data/sig/sentdm/models/user_remove_params.rbs +23 -13
- data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/user_update_role_params.rbs +17 -17
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -1
- data/sig/sentdm/models/webhook_test_params.rbs +13 -6
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
- data/sig/sentdm/models/webhook_update_params.rbs +13 -6
- data/sig/sentdm/models.rbs +0 -12
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -29
- data/sig/sentdm/resources/brands.rbs +0 -25
- data/sig/sentdm/resources/contacts.rbs +7 -2
- data/sig/sentdm/resources/lookup.rbs +0 -5
- data/sig/sentdm/resources/me.rbs +1 -0
- data/sig/sentdm/resources/messages.rbs +4 -1
- data/sig/sentdm/resources/profiles.rbs +19 -8
- data/sig/sentdm/resources/templates.rbs +9 -3
- data/sig/sentdm/resources/users.rbs +10 -7
- data/sig/sentdm/resources/webhooks.rbs +18 -5
- metadata +1 -40
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
- data/lib/sentdm/models/brand_create_params.rb +0 -41
- data/lib/sentdm/models/brand_delete_params.rb +0 -34
- data/lib/sentdm/models/brand_list_params.rb +0 -14
- data/lib/sentdm/models/brand_list_response.rb +0 -43
- data/lib/sentdm/models/brand_update_params.rb +0 -48
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
- data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -20
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +0 -104
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +0 -74
- data/rbi/sentdm/models/brand_create_params.rbi +0 -68
- data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
- data/rbi/sentdm/models/brand_list_params.rbi +0 -27
- data/rbi/sentdm/models/brand_list_response.rbi +0 -71
- data/rbi/sentdm/models/brand_update_params.rbi +0 -74
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -79
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -84
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -85
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -38
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +0 -183
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
- data/sig/sentdm/models/brand_create_params.rbs +0 -36
- data/sig/sentdm/models/brand_delete_params.rbs +0 -36
- data/sig/sentdm/models/brand_list_params.rbs +0 -14
- data/sig/sentdm/models/brand_list_response.rbs +0 -39
- data/sig/sentdm/models/brand_update_params.rbs +0 -45
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -46
- data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -25
- data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
- data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -52
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -23
- 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
|
-
{
|
|
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
|
|
12
|
-
|
|
13
|
-
attr_reader body_profile_id: String?
|
|
15
|
+
attr_accessor profile_id: String
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
attr_accessor body: Sentdm::ProfileDeleteParams::Body
|
|
16
18
|
|
|
17
|
-
attr_reader
|
|
19
|
+
attr_reader x_profile_id: String?
|
|
18
20
|
|
|
19
|
-
def
|
|
21
|
+
def x_profile_id=: (String) -> String
|
|
20
22
|
|
|
21
23
|
def initialize: (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
?
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
+
attr_accessor sending_phone_number: String?
|
|
88
|
+
|
|
89
|
+
attr_accessor sending_phone_number_profile_id: String?
|
|
40
90
|
|
|
41
|
-
|
|
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
|
-
?
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
164
|
+
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
165
|
+
attr_accessor address: String?
|
|
129
166
|
|
|
130
|
-
attr_accessor
|
|
167
|
+
attr_accessor email: String?
|
|
131
168
|
|
|
132
|
-
attr_accessor
|
|
169
|
+
attr_accessor name: String?
|
|
133
170
|
|
|
134
|
-
attr_accessor
|
|
171
|
+
attr_accessor phone: String?
|
|
135
172
|
|
|
136
173
|
def initialize: (
|
|
137
|
-
?
|
|
138
|
-
?
|
|
139
|
-
?
|
|
140
|
-
?
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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 =
|
|
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
|
-
|
|
10
|
+
attr_reader x_profile_id: String?
|
|
10
11
|
|
|
11
|
-
def
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
63
|
+
attr_accessor payment_details: Sentdm::ProfileUpdateParams::PaymentDetails?
|
|
57
64
|
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
?
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
-
|
|
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
|
|
32
|
+
attr_reader sandbox: bool?
|
|
32
33
|
|
|
33
|
-
def
|
|
34
|
+
def sandbox=: (bool) -> bool
|
|
34
35
|
|
|
35
|
-
attr_reader
|
|
36
|
+
attr_reader submit_for_review: bool?
|
|
36
37
|
|
|
37
|
-
def
|
|
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
|
-
{
|
|
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
|
|
20
|
+
attr_reader sandbox: bool?
|
|
21
|
+
|
|
22
|
+
def sandbox=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
attr_reader x_profile_id: String?
|
|
16
25
|
|
|
17
|
-
def
|
|
26
|
+
def x_profile_id=: (String) -> String
|
|
18
27
|
|
|
19
28
|
def initialize: (
|
|
20
29
|
id: String,
|
|
21
30
|
?delete_from_meta: bool?,
|
|
22
|
-
?
|
|
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
|
-
|
|
39
|
+
sandbox: bool,
|
|
40
|
+
x_profile_id: String,
|
|
30
41
|
request_options: Sentdm::RequestOptions
|
|
31
42
|
}
|
|
32
43
|
end
|