sentdm 0.3.0 → 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 +24 -0
- data/README.md +18 -9
- data/lib/sentdm/client.rb +7 -0
- data/lib/sentdm/internal/util.rb +31 -0
- 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 +15 -1
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_retrieve_params.rb +13 -1
- data/lib/sentdm/models/contact_update_params.rb +20 -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 +13 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +13 -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 +20 -6
- data/lib/sentdm/models/profile_create_params.rb +192 -10
- data/lib/sentdm/models/profile_delete_params.rb +21 -14
- 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 +13 -1
- data/lib/sentdm/models/profile_update_params.rb +146 -19
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_delete_params.rb +20 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +13 -1
- data/lib/sentdm/models/template_update_params.rb +24 -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 +20 -13
- data/lib/sentdm/models/user_retrieve_params.rb +13 -1
- data/lib/sentdm/models/user_update_role_params.rb +19 -13
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +13 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +13 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +13 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +13 -1
- data/lib/sentdm/models/webhook_test_params.rb +20 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +20 -6
- data/lib/sentdm/models/webhook_update_params.rb +20 -6
- data/lib/sentdm/models.rb +0 -12
- data/lib/sentdm/resources/brands/campaigns.rb +0 -128
- data/lib/sentdm/resources/brands.rb +0 -110
- data/lib/sentdm/resources/contacts.rb +44 -19
- data/lib/sentdm/resources/lookup.rb +0 -21
- data/lib/sentdm/resources/me.rb +25 -5
- data/lib/sentdm/resources/messages.rb +25 -8
- data/lib/sentdm/resources/profiles.rb +117 -32
- data/lib/sentdm/resources/templates.rb +48 -23
- data/lib/sentdm/resources/users.rb +41 -23
- data/lib/sentdm/resources/webhooks.rb +93 -32
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -14
- data/rbi/sentdm/client.rbi +7 -0
- data/rbi/sentdm/internal/util.rbi +20 -0
- 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 +15 -0
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/contact_update_params.rbi +25 -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 +24 -5
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +24 -5
- 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 +25 -10
- data/rbi/sentdm/models/profile_create_params.rbi +323 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +38 -20
- 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 +24 -5
- data/rbi/sentdm/models/profile_update_params.rbi +233 -26
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_delete_params.rbi +25 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/template_update_params.rbi +28 -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 +37 -19
- data/rbi/sentdm/models/user_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/user_update_role_params.rbi +25 -21
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +24 -5
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +21 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +24 -5
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +20 -1
- data/rbi/sentdm/models/webhook_test_params.rbi +25 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +25 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +25 -10
- data/rbi/sentdm/models.rbi +0 -12
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -94
- data/rbi/sentdm/resources/brands.rbi +0 -78
- data/rbi/sentdm/resources/contacts.rbi +38 -12
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/rbi/sentdm/resources/me.rbi +26 -7
- data/rbi/sentdm/resources/messages.rbi +18 -4
- data/rbi/sentdm/resources/profiles.rbi +179 -38
- data/rbi/sentdm/resources/templates.rbi +48 -19
- data/rbi/sentdm/resources/users.rbi +48 -25
- data/rbi/sentdm/resources/webhooks.rbi +93 -20
- data/sig/sentdm/internal/util.rbs +10 -0
- 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 +15 -1
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/contact_update_params.rbs +18 -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 +18 -3
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +18 -3
- 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 +21 -5
- data/sig/sentdm/models/profile_create_params.rbs +111 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -9
- 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 +18 -3
- data/sig/sentdm/models/profile_update_params.rbs +87 -13
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_delete_params.rbs +20 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/template_update_params.rbs +20 -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 -9
- data/sig/sentdm/models/user_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/user_update_role_params.rbs +18 -13
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +18 -3
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +17 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +18 -3
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +16 -1
- data/sig/sentdm/models/webhook_test_params.rbs +21 -5
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +21 -5
- data/sig/sentdm/models/webhook_update_params.rbs +18 -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 +2 -41
- 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 -27
- 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 -41
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -36
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -16
- data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -50
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -14
- 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 -62
- 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 -68
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -73
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -78
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -29
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -79
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -30
- 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 -32
- 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 -36
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -42
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -38
- data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -17
- data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
- data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -47
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -15
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +0 -102
|
@@ -38,13 +38,18 @@ module Sentdm
|
|
|
38
38
|
type data =
|
|
39
39
|
{
|
|
40
40
|
id: String,
|
|
41
|
+
channels: Sentdm::Models::MeRetrieveResponse::Data::Channels,
|
|
41
42
|
created_at: Time,
|
|
42
43
|
description: String?,
|
|
44
|
+
email: String?,
|
|
43
45
|
icon: String?,
|
|
44
46
|
name: String,
|
|
45
|
-
|
|
47
|
+
organization_id: String?,
|
|
48
|
+
profiles: ::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile],
|
|
46
49
|
settings: Sentdm::ProfileSettings?,
|
|
47
|
-
|
|
50
|
+
short_name: String?,
|
|
51
|
+
status: String?,
|
|
52
|
+
type: String
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
class Data < Sentdm::Internal::Type::BaseModel
|
|
@@ -52,46 +57,168 @@ module Sentdm
|
|
|
52
57
|
|
|
53
58
|
def id=: (String) -> String
|
|
54
59
|
|
|
60
|
+
attr_reader channels: Sentdm::Models::MeRetrieveResponse::Data::Channels?
|
|
61
|
+
|
|
62
|
+
def channels=: (
|
|
63
|
+
Sentdm::Models::MeRetrieveResponse::Data::Channels
|
|
64
|
+
) -> Sentdm::Models::MeRetrieveResponse::Data::Channels
|
|
65
|
+
|
|
55
66
|
attr_reader created_at: Time?
|
|
56
67
|
|
|
57
68
|
def created_at=: (Time) -> Time
|
|
58
69
|
|
|
59
70
|
attr_accessor description: String?
|
|
60
71
|
|
|
72
|
+
attr_accessor email: String?
|
|
73
|
+
|
|
61
74
|
attr_accessor icon: String?
|
|
62
75
|
|
|
63
76
|
attr_reader name: String?
|
|
64
77
|
|
|
65
78
|
def name=: (String) -> String
|
|
66
79
|
|
|
67
|
-
attr_accessor
|
|
80
|
+
attr_accessor organization_id: String?
|
|
81
|
+
|
|
82
|
+
attr_reader profiles: ::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile]?
|
|
83
|
+
|
|
84
|
+
def profiles=: (
|
|
85
|
+
::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile]
|
|
86
|
+
) -> ::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile]
|
|
68
87
|
|
|
69
88
|
attr_accessor settings: Sentdm::ProfileSettings?
|
|
70
89
|
|
|
90
|
+
attr_accessor short_name: String?
|
|
91
|
+
|
|
71
92
|
attr_accessor status: String?
|
|
72
93
|
|
|
94
|
+
attr_reader type: String?
|
|
95
|
+
|
|
96
|
+
def type=: (String) -> String
|
|
97
|
+
|
|
73
98
|
def initialize: (
|
|
74
99
|
?id: String,
|
|
100
|
+
?channels: Sentdm::Models::MeRetrieveResponse::Data::Channels,
|
|
75
101
|
?created_at: Time,
|
|
76
102
|
?description: String?,
|
|
103
|
+
?email: String?,
|
|
77
104
|
?icon: String?,
|
|
78
105
|
?name: String,
|
|
79
|
-
?
|
|
106
|
+
?organization_id: String?,
|
|
107
|
+
?profiles: ::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile],
|
|
80
108
|
?settings: Sentdm::ProfileSettings?,
|
|
81
|
-
?
|
|
109
|
+
?short_name: String?,
|
|
110
|
+
?status: String?,
|
|
111
|
+
?type: String
|
|
82
112
|
) -> void
|
|
83
113
|
|
|
84
114
|
def to_hash: -> {
|
|
85
115
|
id: String,
|
|
116
|
+
channels: Sentdm::Models::MeRetrieveResponse::Data::Channels,
|
|
86
117
|
created_at: Time,
|
|
87
118
|
description: String?,
|
|
119
|
+
email: String?,
|
|
88
120
|
icon: String?,
|
|
89
121
|
name: String,
|
|
90
|
-
|
|
122
|
+
organization_id: String?,
|
|
123
|
+
profiles: ::Array[Sentdm::Models::MeRetrieveResponse::Data::Profile],
|
|
91
124
|
settings: Sentdm::ProfileSettings?,
|
|
92
|
-
|
|
125
|
+
short_name: String?,
|
|
126
|
+
status: String?,
|
|
127
|
+
type: String
|
|
93
128
|
}
|
|
94
129
|
|
|
130
|
+
type channels =
|
|
131
|
+
{
|
|
132
|
+
rcs: Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs,
|
|
133
|
+
sms: Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS,
|
|
134
|
+
whatsapp: Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
class Channels < Sentdm::Internal::Type::BaseModel
|
|
138
|
+
attr_reader rcs: Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs?
|
|
139
|
+
|
|
140
|
+
def rcs=: (
|
|
141
|
+
Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs
|
|
142
|
+
) -> Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs
|
|
143
|
+
|
|
144
|
+
attr_reader sms: Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS?
|
|
145
|
+
|
|
146
|
+
def sms=: (
|
|
147
|
+
Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS
|
|
148
|
+
) -> Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS
|
|
149
|
+
|
|
150
|
+
attr_reader whatsapp: Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp?
|
|
151
|
+
|
|
152
|
+
def whatsapp=: (
|
|
153
|
+
Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp
|
|
154
|
+
) -> Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp
|
|
155
|
+
|
|
156
|
+
def initialize: (
|
|
157
|
+
?rcs: Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs,
|
|
158
|
+
?sms: Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS,
|
|
159
|
+
?whatsapp: Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp
|
|
160
|
+
) -> void
|
|
161
|
+
|
|
162
|
+
def to_hash: -> {
|
|
163
|
+
rcs: Sentdm::Models::MeRetrieveResponse::Data::Channels::Rcs,
|
|
164
|
+
sms: Sentdm::Models::MeRetrieveResponse::Data::Channels::SMS,
|
|
165
|
+
whatsapp: Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
type rcs = { configured: bool, phone_number: String? }
|
|
169
|
+
|
|
170
|
+
class Rcs < Sentdm::Internal::Type::BaseModel
|
|
171
|
+
attr_reader configured: bool?
|
|
172
|
+
|
|
173
|
+
def configured=: (bool) -> bool
|
|
174
|
+
|
|
175
|
+
attr_accessor phone_number: String?
|
|
176
|
+
|
|
177
|
+
def initialize: (?configured: bool, ?phone_number: String?) -> void
|
|
178
|
+
|
|
179
|
+
def to_hash: -> { configured: bool, phone_number: String? }
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type sms = { configured: bool, phone_number: String? }
|
|
183
|
+
|
|
184
|
+
class SMS < Sentdm::Internal::Type::BaseModel
|
|
185
|
+
attr_reader configured: bool?
|
|
186
|
+
|
|
187
|
+
def configured=: (bool) -> bool
|
|
188
|
+
|
|
189
|
+
attr_accessor phone_number: String?
|
|
190
|
+
|
|
191
|
+
def initialize: (?configured: bool, ?phone_number: String?) -> void
|
|
192
|
+
|
|
193
|
+
def to_hash: -> { configured: bool, phone_number: String? }
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
type whatsapp =
|
|
197
|
+
{ business_name: String?, configured: bool, phone_number: String? }
|
|
198
|
+
|
|
199
|
+
class Whatsapp < Sentdm::Internal::Type::BaseModel
|
|
200
|
+
attr_accessor business_name: String?
|
|
201
|
+
|
|
202
|
+
attr_reader configured: bool?
|
|
203
|
+
|
|
204
|
+
def configured=: (bool) -> bool
|
|
205
|
+
|
|
206
|
+
attr_accessor phone_number: String?
|
|
207
|
+
|
|
208
|
+
def initialize: (
|
|
209
|
+
?business_name: String?,
|
|
210
|
+
?configured: bool,
|
|
211
|
+
?phone_number: String?
|
|
212
|
+
) -> void
|
|
213
|
+
|
|
214
|
+
def to_hash: -> {
|
|
215
|
+
business_name: String?,
|
|
216
|
+
configured: bool,
|
|
217
|
+
phone_number: String?
|
|
218
|
+
}
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
95
222
|
type profile =
|
|
96
223
|
{
|
|
97
224
|
id: String,
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type message_retrieve_activities_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class MessageRetrieveActivitiesParams < Sentdm::Internal::Type::BaseModel
|
|
7
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor id: String
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
attr_reader x_profile_id: String?
|
|
14
|
+
|
|
15
|
+
def x_profile_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
?x_profile_id: String,
|
|
20
|
+
?request_options: Sentdm::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
x_profile_id: String,
|
|
26
|
+
request_options: Sentdm::RequestOptions
|
|
27
|
+
}
|
|
13
28
|
end
|
|
14
29
|
end
|
|
15
30
|
end
|
|
@@ -64,19 +64,22 @@ module Sentdm
|
|
|
64
64
|
|
|
65
65
|
type activity =
|
|
66
66
|
{
|
|
67
|
-
|
|
67
|
+
active_contact_price: String?,
|
|
68
68
|
description: String,
|
|
69
|
+
price: String?,
|
|
69
70
|
status: String,
|
|
70
71
|
timestamp: Time
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
class Activity < Sentdm::Internal::Type::BaseModel
|
|
74
|
-
attr_accessor
|
|
75
|
+
attr_accessor active_contact_price: String?
|
|
75
76
|
|
|
76
77
|
attr_reader description: String?
|
|
77
78
|
|
|
78
79
|
def description=: (String) -> String
|
|
79
80
|
|
|
81
|
+
attr_accessor price: String?
|
|
82
|
+
|
|
80
83
|
attr_reader status: String?
|
|
81
84
|
|
|
82
85
|
def status=: (String) -> String
|
|
@@ -86,15 +89,17 @@ module Sentdm
|
|
|
86
89
|
def timestamp=: (Time) -> Time
|
|
87
90
|
|
|
88
91
|
def initialize: (
|
|
89
|
-
?
|
|
92
|
+
?active_contact_price: String?,
|
|
90
93
|
?description: String,
|
|
94
|
+
?price: String?,
|
|
91
95
|
?status: String,
|
|
92
96
|
?timestamp: Time
|
|
93
97
|
) -> void
|
|
94
98
|
|
|
95
99
|
def to_hash: -> {
|
|
96
|
-
|
|
100
|
+
active_contact_price: String?,
|
|
97
101
|
description: String,
|
|
102
|
+
price: String?,
|
|
98
103
|
status: String,
|
|
99
104
|
timestamp: Time
|
|
100
105
|
}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type message_retrieve_status_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class MessageRetrieveStatusParams < Sentdm::Internal::Type::BaseModel
|
|
7
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
attr_accessor id: String
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
attr_reader x_profile_id: String?
|
|
14
|
+
|
|
15
|
+
def x_profile_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
?x_profile_id: String,
|
|
20
|
+
?request_options: Sentdm::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
x_profile_id: String,
|
|
26
|
+
request_options: Sentdm::RequestOptions
|
|
27
|
+
}
|
|
13
28
|
end
|
|
14
29
|
end
|
|
15
30
|
end
|
|
@@ -38,6 +38,7 @@ module Sentdm
|
|
|
38
38
|
type data =
|
|
39
39
|
{
|
|
40
40
|
id: String,
|
|
41
|
+
active_contact_price: Float?,
|
|
41
42
|
channel: String,
|
|
42
43
|
contact_id: String,
|
|
43
44
|
created_at: Time,
|
|
@@ -59,6 +60,8 @@ module Sentdm
|
|
|
59
60
|
|
|
60
61
|
def id=: (String) -> String
|
|
61
62
|
|
|
63
|
+
attr_accessor active_contact_price: Float?
|
|
64
|
+
|
|
62
65
|
attr_reader channel: String?
|
|
63
66
|
|
|
64
67
|
def channel=: (String) -> String
|
|
@@ -109,6 +112,7 @@ module Sentdm
|
|
|
109
112
|
|
|
110
113
|
def initialize: (
|
|
111
114
|
?id: String,
|
|
115
|
+
?active_contact_price: Float?,
|
|
112
116
|
?channel: String,
|
|
113
117
|
?contact_id: String,
|
|
114
118
|
?created_at: Time,
|
|
@@ -127,6 +131,7 @@ module Sentdm
|
|
|
127
131
|
|
|
128
132
|
def to_hash: -> {
|
|
129
133
|
id: String,
|
|
134
|
+
active_contact_price: Float?,
|
|
130
135
|
channel: String,
|
|
131
136
|
contact_id: String,
|
|
132
137
|
created_at: Time,
|
|
@@ -3,10 +3,11 @@ module Sentdm
|
|
|
3
3
|
type message_send_params =
|
|
4
4
|
{
|
|
5
5
|
channel: ::Array[String]?,
|
|
6
|
+
sandbox: bool,
|
|
6
7
|
template: Sentdm::MessageSendParams::Template,
|
|
7
|
-
test_mode: bool,
|
|
8
8
|
to: ::Array[String],
|
|
9
|
-
idempotency_key: String
|
|
9
|
+
idempotency_key: String,
|
|
10
|
+
x_profile_id: String
|
|
10
11
|
}
|
|
11
12
|
& Sentdm::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -16,16 +17,16 @@ module Sentdm
|
|
|
16
17
|
|
|
17
18
|
attr_accessor channel: ::Array[String]?
|
|
18
19
|
|
|
20
|
+
attr_reader sandbox: bool?
|
|
21
|
+
|
|
22
|
+
def sandbox=: (bool) -> bool
|
|
23
|
+
|
|
19
24
|
attr_reader template: Sentdm::MessageSendParams::Template?
|
|
20
25
|
|
|
21
26
|
def template=: (
|
|
22
27
|
Sentdm::MessageSendParams::Template
|
|
23
28
|
) -> Sentdm::MessageSendParams::Template
|
|
24
29
|
|
|
25
|
-
attr_reader test_mode: bool?
|
|
26
|
-
|
|
27
|
-
def test_mode=: (bool) -> bool
|
|
28
|
-
|
|
29
30
|
attr_reader to: ::Array[String]?
|
|
30
31
|
|
|
31
32
|
def to=: (::Array[String]) -> ::Array[String]
|
|
@@ -34,21 +35,27 @@ module Sentdm
|
|
|
34
35
|
|
|
35
36
|
def idempotency_key=: (String) -> String
|
|
36
37
|
|
|
38
|
+
attr_reader x_profile_id: String?
|
|
39
|
+
|
|
40
|
+
def x_profile_id=: (String) -> String
|
|
41
|
+
|
|
37
42
|
def initialize: (
|
|
38
43
|
?channel: ::Array[String]?,
|
|
44
|
+
?sandbox: bool,
|
|
39
45
|
?template: Sentdm::MessageSendParams::Template,
|
|
40
|
-
?test_mode: bool,
|
|
41
46
|
?to: ::Array[String],
|
|
42
47
|
?idempotency_key: String,
|
|
48
|
+
?x_profile_id: String,
|
|
43
49
|
?request_options: Sentdm::request_opts
|
|
44
50
|
) -> void
|
|
45
51
|
|
|
46
52
|
def to_hash: -> {
|
|
47
53
|
channel: ::Array[String]?,
|
|
54
|
+
sandbox: bool,
|
|
48
55
|
template: Sentdm::MessageSendParams::Template,
|
|
49
|
-
test_mode: bool,
|
|
50
56
|
to: ::Array[String],
|
|
51
57
|
idempotency_key: String,
|
|
58
|
+
x_profile_id: String,
|
|
52
59
|
request_options: Sentdm::RequestOptions
|
|
53
60
|
}
|
|
54
61
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type mutation_request = {
|
|
3
|
+
type mutation_request = { sandbox: bool }
|
|
4
4
|
|
|
5
5
|
class MutationRequest < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
attr_reader
|
|
6
|
+
attr_reader sandbox: bool?
|
|
7
7
|
|
|
8
|
-
def
|
|
8
|
+
def sandbox=: (bool) -> bool
|
|
9
9
|
|
|
10
|
-
def initialize: (?
|
|
10
|
+
def initialize: (?sandbox: bool) -> void
|
|
11
11
|
|
|
12
|
-
def to_hash: -> {
|
|
12
|
+
def to_hash: -> { sandbox: bool }
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -1,34 +1,50 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type profile_complete_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
profile_id: String,
|
|
6
|
+
web_hook_url: String,
|
|
7
|
+
sandbox: bool,
|
|
8
|
+
idempotency_key: String,
|
|
9
|
+
x_profile_id: String
|
|
10
|
+
}
|
|
5
11
|
& Sentdm::Internal::Type::request_parameters
|
|
6
12
|
|
|
7
13
|
class ProfileCompleteParams < Sentdm::Internal::Type::BaseModel
|
|
8
14
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
15
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
16
|
|
|
17
|
+
attr_accessor profile_id: String
|
|
18
|
+
|
|
11
19
|
attr_accessor web_hook_url: String
|
|
12
20
|
|
|
13
|
-
attr_reader
|
|
21
|
+
attr_reader sandbox: bool?
|
|
14
22
|
|
|
15
|
-
def
|
|
23
|
+
def sandbox=: (bool) -> bool
|
|
16
24
|
|
|
17
25
|
attr_reader idempotency_key: String?
|
|
18
26
|
|
|
19
27
|
def idempotency_key=: (String) -> String
|
|
20
28
|
|
|
29
|
+
attr_reader x_profile_id: String?
|
|
30
|
+
|
|
31
|
+
def x_profile_id=: (String) -> String
|
|
32
|
+
|
|
21
33
|
def initialize: (
|
|
34
|
+
profile_id: String,
|
|
22
35
|
web_hook_url: String,
|
|
23
|
-
?
|
|
36
|
+
?sandbox: bool,
|
|
24
37
|
?idempotency_key: String,
|
|
38
|
+
?x_profile_id: String,
|
|
25
39
|
?request_options: Sentdm::request_opts
|
|
26
40
|
) -> void
|
|
27
41
|
|
|
28
42
|
def to_hash: -> {
|
|
43
|
+
profile_id: String,
|
|
29
44
|
web_hook_url: String,
|
|
30
|
-
|
|
45
|
+
sandbox: bool,
|
|
31
46
|
idempotency_key: String,
|
|
47
|
+
x_profile_id: String,
|
|
32
48
|
request_options: Sentdm::RequestOptions
|
|
33
49
|
}
|
|
34
50
|
end
|
|
@@ -4,7 +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
8
|
billing_model: String?,
|
|
9
|
+
brand: Sentdm::BrandData?,
|
|
8
10
|
description: String?,
|
|
9
11
|
icon: String?,
|
|
10
12
|
inherit_contacts: bool?,
|
|
@@ -12,9 +14,12 @@ module Sentdm
|
|
|
12
14
|
inherit_tcr_campaign: bool?,
|
|
13
15
|
inherit_templates: bool?,
|
|
14
16
|
name: String,
|
|
17
|
+
payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
18
|
+
sandbox: bool,
|
|
15
19
|
short_name: String?,
|
|
16
|
-
|
|
17
|
-
idempotency_key: String
|
|
20
|
+
whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
21
|
+
idempotency_key: String,
|
|
22
|
+
x_profile_id: String
|
|
18
23
|
}
|
|
19
24
|
& Sentdm::Internal::Type::request_parameters
|
|
20
25
|
|
|
@@ -30,8 +35,12 @@ module Sentdm
|
|
|
30
35
|
|
|
31
36
|
def allow_template_sharing=: (bool) -> bool
|
|
32
37
|
|
|
38
|
+
attr_accessor billing_contact: Sentdm::ProfileCreateParams::BillingContact?
|
|
39
|
+
|
|
33
40
|
attr_accessor billing_model: String?
|
|
34
41
|
|
|
42
|
+
attr_accessor brand: Sentdm::BrandData?
|
|
43
|
+
|
|
35
44
|
attr_accessor description: String?
|
|
36
45
|
|
|
37
46
|
attr_accessor icon: String?
|
|
@@ -48,20 +57,30 @@ module Sentdm
|
|
|
48
57
|
|
|
49
58
|
def name=: (String) -> String
|
|
50
59
|
|
|
51
|
-
attr_accessor
|
|
60
|
+
attr_accessor payment_details: Sentdm::ProfileCreateParams::PaymentDetails?
|
|
52
61
|
|
|
53
|
-
attr_reader
|
|
62
|
+
attr_reader sandbox: bool?
|
|
54
63
|
|
|
55
|
-
def
|
|
64
|
+
def sandbox=: (bool) -> bool
|
|
65
|
+
|
|
66
|
+
attr_accessor short_name: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?
|
|
56
69
|
|
|
57
70
|
attr_reader idempotency_key: String?
|
|
58
71
|
|
|
59
72
|
def idempotency_key=: (String) -> String
|
|
60
73
|
|
|
74
|
+
attr_reader x_profile_id: String?
|
|
75
|
+
|
|
76
|
+
def x_profile_id=: (String) -> String
|
|
77
|
+
|
|
61
78
|
def initialize: (
|
|
62
79
|
?allow_contact_sharing: bool,
|
|
63
80
|
?allow_template_sharing: bool,
|
|
81
|
+
?billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
64
82
|
?billing_model: String?,
|
|
83
|
+
?brand: Sentdm::BrandData?,
|
|
65
84
|
?description: String?,
|
|
66
85
|
?icon: String?,
|
|
67
86
|
?inherit_contacts: bool?,
|
|
@@ -69,16 +88,21 @@ module Sentdm
|
|
|
69
88
|
?inherit_tcr_campaign: bool?,
|
|
70
89
|
?inherit_templates: bool?,
|
|
71
90
|
?name: String,
|
|
91
|
+
?payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
92
|
+
?sandbox: bool,
|
|
72
93
|
?short_name: String?,
|
|
73
|
-
?
|
|
94
|
+
?whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
74
95
|
?idempotency_key: String,
|
|
96
|
+
?x_profile_id: String,
|
|
75
97
|
?request_options: Sentdm::request_opts
|
|
76
98
|
) -> void
|
|
77
99
|
|
|
78
100
|
def to_hash: -> {
|
|
79
101
|
allow_contact_sharing: bool,
|
|
80
102
|
allow_template_sharing: bool,
|
|
103
|
+
billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
81
104
|
billing_model: String?,
|
|
105
|
+
brand: Sentdm::BrandData?,
|
|
82
106
|
description: String?,
|
|
83
107
|
icon: String?,
|
|
84
108
|
inherit_contacts: bool?,
|
|
@@ -86,11 +110,91 @@ module Sentdm
|
|
|
86
110
|
inherit_tcr_campaign: bool?,
|
|
87
111
|
inherit_templates: bool?,
|
|
88
112
|
name: String,
|
|
113
|
+
payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
114
|
+
sandbox: bool,
|
|
89
115
|
short_name: String?,
|
|
90
|
-
|
|
116
|
+
whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
91
117
|
idempotency_key: String,
|
|
118
|
+
x_profile_id: String,
|
|
92
119
|
request_options: Sentdm::RequestOptions
|
|
93
120
|
}
|
|
121
|
+
|
|
122
|
+
type billing_contact =
|
|
123
|
+
{ email: String, name: String, address: String?, phone: String? }
|
|
124
|
+
|
|
125
|
+
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
126
|
+
attr_accessor email: String
|
|
127
|
+
|
|
128
|
+
attr_accessor name: String
|
|
129
|
+
|
|
130
|
+
attr_accessor address: String?
|
|
131
|
+
|
|
132
|
+
attr_accessor phone: String?
|
|
133
|
+
|
|
134
|
+
def initialize: (
|
|
135
|
+
email: String,
|
|
136
|
+
name: String,
|
|
137
|
+
?address: String?,
|
|
138
|
+
?phone: String?
|
|
139
|
+
) -> void
|
|
140
|
+
|
|
141
|
+
def to_hash: -> {
|
|
142
|
+
email: String,
|
|
143
|
+
name: String,
|
|
144
|
+
address: String?,
|
|
145
|
+
phone: String?
|
|
146
|
+
}
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
type payment_details =
|
|
150
|
+
{ card_number: String, cvc: String, expiry: String, zip_code: String }
|
|
151
|
+
|
|
152
|
+
class PaymentDetails < Sentdm::Internal::Type::BaseModel
|
|
153
|
+
attr_accessor card_number: String
|
|
154
|
+
|
|
155
|
+
attr_accessor cvc: String
|
|
156
|
+
|
|
157
|
+
attr_accessor expiry: String
|
|
158
|
+
|
|
159
|
+
attr_accessor zip_code: String
|
|
160
|
+
|
|
161
|
+
def initialize: (
|
|
162
|
+
card_number: String,
|
|
163
|
+
cvc: String,
|
|
164
|
+
expiry: String,
|
|
165
|
+
zip_code: String
|
|
166
|
+
) -> void
|
|
167
|
+
|
|
168
|
+
def to_hash: -> {
|
|
169
|
+
card_number: String,
|
|
170
|
+
cvc: String,
|
|
171
|
+
expiry: String,
|
|
172
|
+
zip_code: String
|
|
173
|
+
}
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
type whatsapp_business_account =
|
|
177
|
+
{ access_token: String, waba_id: String, phone_number_id: String? }
|
|
178
|
+
|
|
179
|
+
class WhatsappBusinessAccount < Sentdm::Internal::Type::BaseModel
|
|
180
|
+
attr_accessor access_token: String
|
|
181
|
+
|
|
182
|
+
attr_accessor waba_id: String
|
|
183
|
+
|
|
184
|
+
attr_accessor phone_number_id: String?
|
|
185
|
+
|
|
186
|
+
def initialize: (
|
|
187
|
+
access_token: String,
|
|
188
|
+
waba_id: String,
|
|
189
|
+
?phone_number_id: String?
|
|
190
|
+
) -> void
|
|
191
|
+
|
|
192
|
+
def to_hash: -> {
|
|
193
|
+
access_token: String,
|
|
194
|
+
waba_id: String,
|
|
195
|
+
phone_number_id: String?
|
|
196
|
+
}
|
|
197
|
+
end
|
|
94
198
|
end
|
|
95
199
|
end
|
|
96
200
|
end
|