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
|
@@ -3,41 +3,19 @@ module Sentdm
|
|
|
3
3
|
type brand_with_kyc =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
business_role: String?,
|
|
10
|
-
business_url: String?,
|
|
11
|
-
city: String?,
|
|
12
|
-
contact_email: String?,
|
|
13
|
-
contact_name: String,
|
|
14
|
-
contact_phone: String?,
|
|
15
|
-
contact_phone_country_code: String?,
|
|
16
|
-
country: String?,
|
|
17
|
-
country_of_registration: String?,
|
|
6
|
+
business: Sentdm::BrandWithKYC::Business?,
|
|
7
|
+
compliance: Sentdm::BrandWithKYC::Compliance?,
|
|
8
|
+
contact: Sentdm::BrandWithKYC::Contact?,
|
|
18
9
|
created_at: Time,
|
|
19
10
|
csp_id: String?,
|
|
20
|
-
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
21
|
-
entity_type: String?,
|
|
22
|
-
expected_messaging_volume: String?,
|
|
23
11
|
identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
24
12
|
is_inherited: bool,
|
|
25
|
-
is_tcr_application: bool,
|
|
26
|
-
notes: String?,
|
|
27
|
-
phone_number_prefix: String?,
|
|
28
|
-
postal_code: String?,
|
|
29
|
-
primary_use_case: String?,
|
|
30
|
-
state: String?,
|
|
31
13
|
status: Sentdm::Models::BrandWithKYC::status?,
|
|
32
|
-
street: String?,
|
|
33
14
|
submitted_at: Time?,
|
|
34
15
|
submitted_to_tcr: bool,
|
|
35
|
-
tax_id: String?,
|
|
36
|
-
tax_id_type: String?,
|
|
37
16
|
tcr_brand_id: String?,
|
|
38
17
|
universal_ein: String?,
|
|
39
|
-
updated_at: Time
|
|
40
|
-
vertical: Sentdm::Models::tcr_vertical?
|
|
18
|
+
updated_at: Time?
|
|
41
19
|
}
|
|
42
20
|
|
|
43
21
|
class BrandWithKYC < Sentdm::Internal::Type::BaseModel
|
|
@@ -45,31 +23,11 @@ module Sentdm
|
|
|
45
23
|
|
|
46
24
|
def id=: (String) -> String
|
|
47
25
|
|
|
48
|
-
attr_accessor
|
|
26
|
+
attr_accessor business: Sentdm::BrandWithKYC::Business?
|
|
49
27
|
|
|
50
|
-
attr_accessor
|
|
28
|
+
attr_accessor compliance: Sentdm::BrandWithKYC::Compliance?
|
|
51
29
|
|
|
52
|
-
attr_accessor
|
|
53
|
-
|
|
54
|
-
attr_accessor business_role: String?
|
|
55
|
-
|
|
56
|
-
attr_accessor business_url: String?
|
|
57
|
-
|
|
58
|
-
attr_accessor city: String?
|
|
59
|
-
|
|
60
|
-
attr_accessor contact_email: String?
|
|
61
|
-
|
|
62
|
-
attr_reader contact_name: String?
|
|
63
|
-
|
|
64
|
-
def contact_name=: (String) -> String
|
|
65
|
-
|
|
66
|
-
attr_accessor contact_phone: String?
|
|
67
|
-
|
|
68
|
-
attr_accessor contact_phone_country_code: String?
|
|
69
|
-
|
|
70
|
-
attr_accessor country: String?
|
|
71
|
-
|
|
72
|
-
attr_accessor country_of_registration: String?
|
|
30
|
+
attr_accessor contact: Sentdm::BrandWithKYC::Contact?
|
|
73
31
|
|
|
74
32
|
attr_reader created_at: Time?
|
|
75
33
|
|
|
@@ -77,136 +35,229 @@ module Sentdm
|
|
|
77
35
|
|
|
78
36
|
attr_accessor csp_id: String?
|
|
79
37
|
|
|
80
|
-
attr_reader destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
81
|
-
|
|
82
|
-
def destination_countries=: (
|
|
83
|
-
::Array[Sentdm::DestinationCountry]
|
|
84
|
-
) -> ::Array[Sentdm::DestinationCountry]
|
|
85
|
-
|
|
86
|
-
attr_accessor entity_type: String?
|
|
87
|
-
|
|
88
|
-
attr_accessor expected_messaging_volume: String?
|
|
89
|
-
|
|
90
38
|
attr_accessor identity_status: Sentdm::Models::BrandWithKYC::identity_status?
|
|
91
39
|
|
|
92
40
|
attr_reader is_inherited: bool?
|
|
93
41
|
|
|
94
42
|
def is_inherited=: (bool) -> bool
|
|
95
43
|
|
|
96
|
-
attr_reader is_tcr_application: bool?
|
|
97
|
-
|
|
98
|
-
def is_tcr_application=: (bool) -> bool
|
|
99
|
-
|
|
100
|
-
attr_accessor notes: String?
|
|
101
|
-
|
|
102
|
-
attr_accessor phone_number_prefix: String?
|
|
103
|
-
|
|
104
|
-
attr_accessor postal_code: String?
|
|
105
|
-
|
|
106
|
-
attr_accessor primary_use_case: String?
|
|
107
|
-
|
|
108
|
-
attr_accessor state: String?
|
|
109
|
-
|
|
110
44
|
attr_accessor status: Sentdm::Models::BrandWithKYC::status?
|
|
111
45
|
|
|
112
|
-
attr_accessor street: String?
|
|
113
|
-
|
|
114
46
|
attr_accessor submitted_at: Time?
|
|
115
47
|
|
|
116
48
|
attr_reader submitted_to_tcr: bool?
|
|
117
49
|
|
|
118
50
|
def submitted_to_tcr=: (bool) -> bool
|
|
119
51
|
|
|
120
|
-
attr_accessor tax_id: String?
|
|
121
|
-
|
|
122
|
-
attr_accessor tax_id_type: String?
|
|
123
|
-
|
|
124
52
|
attr_accessor tcr_brand_id: String?
|
|
125
53
|
|
|
126
54
|
attr_accessor universal_ein: String?
|
|
127
55
|
|
|
128
56
|
attr_accessor updated_at: Time?
|
|
129
57
|
|
|
130
|
-
attr_accessor vertical: Sentdm::Models::tcr_vertical?
|
|
131
|
-
|
|
132
58
|
def initialize: (
|
|
133
59
|
?id: String,
|
|
134
|
-
?
|
|
135
|
-
?
|
|
136
|
-
?
|
|
137
|
-
?business_role: String?,
|
|
138
|
-
?business_url: String?,
|
|
139
|
-
?city: String?,
|
|
140
|
-
?contact_email: String?,
|
|
141
|
-
?contact_name: String,
|
|
142
|
-
?contact_phone: String?,
|
|
143
|
-
?contact_phone_country_code: String?,
|
|
144
|
-
?country: String?,
|
|
145
|
-
?country_of_registration: String?,
|
|
60
|
+
?business: Sentdm::BrandWithKYC::Business?,
|
|
61
|
+
?compliance: Sentdm::BrandWithKYC::Compliance?,
|
|
62
|
+
?contact: Sentdm::BrandWithKYC::Contact?,
|
|
146
63
|
?created_at: Time,
|
|
147
64
|
?csp_id: String?,
|
|
148
|
-
?destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
149
|
-
?entity_type: String?,
|
|
150
|
-
?expected_messaging_volume: String?,
|
|
151
65
|
?identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
152
66
|
?is_inherited: bool,
|
|
153
|
-
?is_tcr_application: bool,
|
|
154
|
-
?notes: String?,
|
|
155
|
-
?phone_number_prefix: String?,
|
|
156
|
-
?postal_code: String?,
|
|
157
|
-
?primary_use_case: String?,
|
|
158
|
-
?state: String?,
|
|
159
67
|
?status: Sentdm::Models::BrandWithKYC::status?,
|
|
160
|
-
?street: String?,
|
|
161
68
|
?submitted_at: Time?,
|
|
162
69
|
?submitted_to_tcr: bool,
|
|
163
|
-
?tax_id: String?,
|
|
164
|
-
?tax_id_type: String?,
|
|
165
70
|
?tcr_brand_id: String?,
|
|
166
71
|
?universal_ein: String?,
|
|
167
|
-
?updated_at: Time
|
|
168
|
-
?vertical: Sentdm::Models::tcr_vertical?
|
|
72
|
+
?updated_at: Time?
|
|
169
73
|
) -> void
|
|
170
74
|
|
|
171
75
|
def to_hash: -> {
|
|
172
76
|
id: String,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
business_role: String?,
|
|
177
|
-
business_url: String?,
|
|
178
|
-
city: String?,
|
|
179
|
-
contact_email: String?,
|
|
180
|
-
contact_name: String,
|
|
181
|
-
contact_phone: String?,
|
|
182
|
-
contact_phone_country_code: String?,
|
|
183
|
-
country: String?,
|
|
184
|
-
country_of_registration: String?,
|
|
77
|
+
business: Sentdm::BrandWithKYC::Business?,
|
|
78
|
+
compliance: Sentdm::BrandWithKYC::Compliance?,
|
|
79
|
+
contact: Sentdm::BrandWithKYC::Contact?,
|
|
185
80
|
created_at: Time,
|
|
186
81
|
csp_id: String?,
|
|
187
|
-
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
188
|
-
entity_type: String?,
|
|
189
|
-
expected_messaging_volume: String?,
|
|
190
82
|
identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
191
83
|
is_inherited: bool,
|
|
192
|
-
is_tcr_application: bool,
|
|
193
|
-
notes: String?,
|
|
194
|
-
phone_number_prefix: String?,
|
|
195
|
-
postal_code: String?,
|
|
196
|
-
primary_use_case: String?,
|
|
197
|
-
state: String?,
|
|
198
84
|
status: Sentdm::Models::BrandWithKYC::status?,
|
|
199
|
-
street: String?,
|
|
200
85
|
submitted_at: Time?,
|
|
201
86
|
submitted_to_tcr: bool,
|
|
202
|
-
tax_id: String?,
|
|
203
|
-
tax_id_type: String?,
|
|
204
87
|
tcr_brand_id: String?,
|
|
205
88
|
universal_ein: String?,
|
|
206
|
-
updated_at: Time
|
|
207
|
-
vertical: Sentdm::Models::tcr_vertical?
|
|
89
|
+
updated_at: Time?
|
|
208
90
|
}
|
|
209
91
|
|
|
92
|
+
type business =
|
|
93
|
+
{
|
|
94
|
+
city: String?,
|
|
95
|
+
country: String?,
|
|
96
|
+
country_of_registration: String?,
|
|
97
|
+
entity_type: String?,
|
|
98
|
+
legal_name: String?,
|
|
99
|
+
postal_code: String?,
|
|
100
|
+
state: String?,
|
|
101
|
+
street: String?,
|
|
102
|
+
tax_id: String?,
|
|
103
|
+
tax_id_type: String?,
|
|
104
|
+
url: String?
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
class Business < Sentdm::Internal::Type::BaseModel
|
|
108
|
+
attr_accessor city: String?
|
|
109
|
+
|
|
110
|
+
attr_accessor country: String?
|
|
111
|
+
|
|
112
|
+
attr_accessor country_of_registration: String?
|
|
113
|
+
|
|
114
|
+
attr_accessor entity_type: String?
|
|
115
|
+
|
|
116
|
+
attr_accessor legal_name: String?
|
|
117
|
+
|
|
118
|
+
attr_accessor postal_code: String?
|
|
119
|
+
|
|
120
|
+
attr_accessor state: String?
|
|
121
|
+
|
|
122
|
+
attr_accessor street: String?
|
|
123
|
+
|
|
124
|
+
attr_accessor tax_id: String?
|
|
125
|
+
|
|
126
|
+
attr_accessor tax_id_type: String?
|
|
127
|
+
|
|
128
|
+
attr_accessor url: String?
|
|
129
|
+
|
|
130
|
+
def initialize: (
|
|
131
|
+
?city: String?,
|
|
132
|
+
?country: String?,
|
|
133
|
+
?country_of_registration: String?,
|
|
134
|
+
?entity_type: String?,
|
|
135
|
+
?legal_name: String?,
|
|
136
|
+
?postal_code: String?,
|
|
137
|
+
?state: String?,
|
|
138
|
+
?street: String?,
|
|
139
|
+
?tax_id: String?,
|
|
140
|
+
?tax_id_type: String?,
|
|
141
|
+
?url: String?
|
|
142
|
+
) -> void
|
|
143
|
+
|
|
144
|
+
def to_hash: -> {
|
|
145
|
+
city: String?,
|
|
146
|
+
country: String?,
|
|
147
|
+
country_of_registration: String?,
|
|
148
|
+
entity_type: String?,
|
|
149
|
+
legal_name: String?,
|
|
150
|
+
postal_code: String?,
|
|
151
|
+
state: String?,
|
|
152
|
+
street: String?,
|
|
153
|
+
tax_id: String?,
|
|
154
|
+
tax_id_type: String?,
|
|
155
|
+
url: String?
|
|
156
|
+
}
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
type compliance =
|
|
160
|
+
{
|
|
161
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
162
|
+
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
163
|
+
expected_messaging_volume: String?,
|
|
164
|
+
is_tcr_application: bool,
|
|
165
|
+
notes: String?,
|
|
166
|
+
phone_number_prefix: String?,
|
|
167
|
+
primary_use_case: String?,
|
|
168
|
+
vertical: Sentdm::Models::tcr_vertical?
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
172
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship?
|
|
173
|
+
|
|
174
|
+
attr_reader destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
175
|
+
|
|
176
|
+
def destination_countries=: (
|
|
177
|
+
::Array[Sentdm::DestinationCountry]
|
|
178
|
+
) -> ::Array[Sentdm::DestinationCountry]
|
|
179
|
+
|
|
180
|
+
attr_accessor expected_messaging_volume: String?
|
|
181
|
+
|
|
182
|
+
attr_reader is_tcr_application: bool?
|
|
183
|
+
|
|
184
|
+
def is_tcr_application=: (bool) -> bool
|
|
185
|
+
|
|
186
|
+
attr_accessor notes: String?
|
|
187
|
+
|
|
188
|
+
attr_accessor phone_number_prefix: String?
|
|
189
|
+
|
|
190
|
+
attr_accessor primary_use_case: String?
|
|
191
|
+
|
|
192
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical?
|
|
193
|
+
|
|
194
|
+
def initialize: (
|
|
195
|
+
?brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
196
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
197
|
+
?expected_messaging_volume: String?,
|
|
198
|
+
?is_tcr_application: bool,
|
|
199
|
+
?notes: String?,
|
|
200
|
+
?phone_number_prefix: String?,
|
|
201
|
+
?primary_use_case: String?,
|
|
202
|
+
?vertical: Sentdm::Models::tcr_vertical?
|
|
203
|
+
) -> void
|
|
204
|
+
|
|
205
|
+
def to_hash: -> {
|
|
206
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
207
|
+
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
208
|
+
expected_messaging_volume: String?,
|
|
209
|
+
is_tcr_application: bool,
|
|
210
|
+
notes: String?,
|
|
211
|
+
phone_number_prefix: String?,
|
|
212
|
+
primary_use_case: String?,
|
|
213
|
+
vertical: Sentdm::Models::tcr_vertical?
|
|
214
|
+
}
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
type contact =
|
|
218
|
+
{
|
|
219
|
+
business_name: String?,
|
|
220
|
+
email: String?,
|
|
221
|
+
name: String,
|
|
222
|
+
phone: String?,
|
|
223
|
+
phone_country_code: String?,
|
|
224
|
+
role: String?
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
class Contact < Sentdm::Internal::Type::BaseModel
|
|
228
|
+
attr_accessor business_name: String?
|
|
229
|
+
|
|
230
|
+
attr_accessor email: String?
|
|
231
|
+
|
|
232
|
+
attr_reader name: String?
|
|
233
|
+
|
|
234
|
+
def name=: (String) -> String
|
|
235
|
+
|
|
236
|
+
attr_accessor phone: String?
|
|
237
|
+
|
|
238
|
+
attr_accessor phone_country_code: String?
|
|
239
|
+
|
|
240
|
+
attr_accessor role: String?
|
|
241
|
+
|
|
242
|
+
def initialize: (
|
|
243
|
+
?business_name: String?,
|
|
244
|
+
?email: String?,
|
|
245
|
+
?name: String,
|
|
246
|
+
?phone: String?,
|
|
247
|
+
?phone_country_code: String?,
|
|
248
|
+
?role: String?
|
|
249
|
+
) -> void
|
|
250
|
+
|
|
251
|
+
def to_hash: -> {
|
|
252
|
+
business_name: String?,
|
|
253
|
+
email: String?,
|
|
254
|
+
name: String,
|
|
255
|
+
phone: String?,
|
|
256
|
+
phone_country_code: String?,
|
|
257
|
+
role: String?
|
|
258
|
+
}
|
|
259
|
+
end
|
|
260
|
+
|
|
210
261
|
type identity_status =
|
|
211
262
|
:SELF_DECLARED | :UNVERIFIED | :VERIFIED | :VETTED_VERIFIED
|
|
212
263
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type contact_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
phone_number: String,
|
|
6
|
+
sandbox: bool,
|
|
7
|
+
idempotency_key: String,
|
|
8
|
+
x_profile_id: String
|
|
9
|
+
}
|
|
5
10
|
& Sentdm::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class ContactCreateParams < Sentdm::Internal::Type::BaseModel
|
|
@@ -12,25 +17,31 @@ module Sentdm
|
|
|
12
17
|
|
|
13
18
|
def phone_number=: (String) -> String
|
|
14
19
|
|
|
15
|
-
attr_reader
|
|
20
|
+
attr_reader sandbox: bool?
|
|
16
21
|
|
|
17
|
-
def
|
|
22
|
+
def sandbox=: (bool) -> bool
|
|
18
23
|
|
|
19
24
|
attr_reader idempotency_key: String?
|
|
20
25
|
|
|
21
26
|
def idempotency_key=: (String) -> String
|
|
22
27
|
|
|
28
|
+
attr_reader x_profile_id: String?
|
|
29
|
+
|
|
30
|
+
def x_profile_id=: (String) -> String
|
|
31
|
+
|
|
23
32
|
def initialize: (
|
|
24
33
|
?phone_number: String,
|
|
25
|
-
?
|
|
34
|
+
?sandbox: bool,
|
|
26
35
|
?idempotency_key: String,
|
|
36
|
+
?x_profile_id: String,
|
|
27
37
|
?request_options: Sentdm::request_opts
|
|
28
38
|
) -> void
|
|
29
39
|
|
|
30
40
|
def to_hash: -> {
|
|
31
41
|
phone_number: String,
|
|
32
|
-
|
|
42
|
+
sandbox: bool,
|
|
33
43
|
idempotency_key: String,
|
|
44
|
+
x_profile_id: String,
|
|
34
45
|
request_options: Sentdm::RequestOptions
|
|
35
46
|
}
|
|
36
47
|
end
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type contact_delete_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
body: Sentdm::ContactDeleteParams::Body,
|
|
7
|
+
x_profile_id: String
|
|
8
|
+
}
|
|
5
9
|
& Sentdm::Internal::Type::request_parameters
|
|
6
10
|
|
|
7
11
|
class ContactDeleteParams < Sentdm::Internal::Type::BaseModel
|
|
8
12
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
13
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
14
|
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
11
17
|
attr_accessor body: Sentdm::ContactDeleteParams::Body
|
|
12
18
|
|
|
19
|
+
attr_reader x_profile_id: String?
|
|
20
|
+
|
|
21
|
+
def x_profile_id=: (String) -> String
|
|
22
|
+
|
|
13
23
|
def initialize: (
|
|
24
|
+
id: String,
|
|
14
25
|
body: Sentdm::ContactDeleteParams::Body,
|
|
26
|
+
?x_profile_id: String,
|
|
15
27
|
?request_options: Sentdm::request_opts
|
|
16
28
|
) -> void
|
|
17
29
|
|
|
18
30
|
def to_hash: -> {
|
|
31
|
+
id: String,
|
|
19
32
|
body: Sentdm::ContactDeleteParams::Body,
|
|
33
|
+
x_profile_id: String,
|
|
20
34
|
request_options: Sentdm::RequestOptions
|
|
21
35
|
}
|
|
22
36
|
|
|
@@ -6,7 +6,8 @@ module Sentdm
|
|
|
6
6
|
page_size: Integer,
|
|
7
7
|
channel: String?,
|
|
8
8
|
phone: String?,
|
|
9
|
-
search: String
|
|
9
|
+
search: String?,
|
|
10
|
+
x_profile_id: String
|
|
10
11
|
}
|
|
11
12
|
& Sentdm::Internal::Type::request_parameters
|
|
12
13
|
|
|
@@ -24,12 +25,17 @@ module Sentdm
|
|
|
24
25
|
|
|
25
26
|
attr_accessor search: String?
|
|
26
27
|
|
|
28
|
+
attr_reader x_profile_id: String?
|
|
29
|
+
|
|
30
|
+
def x_profile_id=: (String) -> String
|
|
31
|
+
|
|
27
32
|
def initialize: (
|
|
28
33
|
page: Integer,
|
|
29
34
|
page_size: Integer,
|
|
30
35
|
?channel: String?,
|
|
31
36
|
?phone: String?,
|
|
32
37
|
?search: String?,
|
|
38
|
+
?x_profile_id: String,
|
|
33
39
|
?request_options: Sentdm::request_opts
|
|
34
40
|
) -> void
|
|
35
41
|
|
|
@@ -39,6 +45,7 @@ module Sentdm
|
|
|
39
45
|
channel: String?,
|
|
40
46
|
phone: String?,
|
|
41
47
|
search: String?,
|
|
48
|
+
x_profile_id: String,
|
|
42
49
|
request_options: Sentdm::RequestOptions
|
|
43
50
|
}
|
|
44
51
|
end
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
type contact_retrieve_params =
|
|
4
|
-
{
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class ContactRetrieveParams < 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
|
|
@@ -2,10 +2,12 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type contact_update_params =
|
|
4
4
|
{
|
|
5
|
+
id: String,
|
|
5
6
|
default_channel: String?,
|
|
6
7
|
opt_out: bool?,
|
|
7
|
-
|
|
8
|
-
idempotency_key: String
|
|
8
|
+
sandbox: bool,
|
|
9
|
+
idempotency_key: String,
|
|
10
|
+
x_profile_id: String
|
|
9
11
|
}
|
|
10
12
|
& Sentdm::Internal::Type::request_parameters
|
|
11
13
|
|
|
@@ -13,31 +15,41 @@ module Sentdm
|
|
|
13
15
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
14
16
|
include Sentdm::Internal::Type::RequestParameters
|
|
15
17
|
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
16
20
|
attr_accessor default_channel: String?
|
|
17
21
|
|
|
18
22
|
attr_accessor opt_out: bool?
|
|
19
23
|
|
|
20
|
-
attr_reader
|
|
24
|
+
attr_reader sandbox: bool?
|
|
21
25
|
|
|
22
|
-
def
|
|
26
|
+
def sandbox=: (bool) -> bool
|
|
23
27
|
|
|
24
28
|
attr_reader idempotency_key: String?
|
|
25
29
|
|
|
26
30
|
def idempotency_key=: (String) -> String
|
|
27
31
|
|
|
32
|
+
attr_reader x_profile_id: String?
|
|
33
|
+
|
|
34
|
+
def x_profile_id=: (String) -> String
|
|
35
|
+
|
|
28
36
|
def initialize: (
|
|
37
|
+
id: String,
|
|
29
38
|
?default_channel: String?,
|
|
30
39
|
?opt_out: bool?,
|
|
31
|
-
?
|
|
40
|
+
?sandbox: bool,
|
|
32
41
|
?idempotency_key: String,
|
|
42
|
+
?x_profile_id: String,
|
|
33
43
|
?request_options: Sentdm::request_opts
|
|
34
44
|
) -> void
|
|
35
45
|
|
|
36
46
|
def to_hash: -> {
|
|
47
|
+
id: String,
|
|
37
48
|
default_channel: String?,
|
|
38
49
|
opt_out: bool?,
|
|
39
|
-
|
|
50
|
+
sandbox: bool,
|
|
40
51
|
idempotency_key: String,
|
|
52
|
+
x_profile_id: String,
|
|
41
53
|
request_options: Sentdm::RequestOptions
|
|
42
54
|
}
|
|
43
55
|
end
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type me_retrieve_params =
|
|
3
|
+
type me_retrieve_params =
|
|
4
|
+
{ x_profile_id: String } & Sentdm::Internal::Type::request_parameters
|
|
4
5
|
|
|
5
6
|
class MeRetrieveParams < 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
|