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
|
@@ -6,259 +6,382 @@ module Sentdm
|
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias { T.any(Sentdm::BrandData, Sentdm::Internal::AnyHash) }
|
|
8
8
|
|
|
9
|
-
#
|
|
10
|
-
sig { returns(Sentdm::
|
|
11
|
-
|
|
9
|
+
# Compliance and TCR-related information
|
|
10
|
+
sig { returns(Sentdm::BrandData::Compliance) }
|
|
11
|
+
attr_reader :compliance
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
attr_accessor :contact_name
|
|
13
|
+
sig { params(compliance: Sentdm::BrandData::Compliance::OrHash).void }
|
|
14
|
+
attr_writer :compliance
|
|
16
15
|
|
|
17
|
-
#
|
|
18
|
-
sig { returns(Sentdm::
|
|
19
|
-
|
|
16
|
+
# Contact information for the brand
|
|
17
|
+
sig { returns(Sentdm::BrandData::Contact) }
|
|
18
|
+
attr_reader :contact
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
attr_accessor :brand_name
|
|
20
|
+
sig { params(contact: Sentdm::BrandData::Contact::OrHash).void }
|
|
21
|
+
attr_writer :contact
|
|
24
22
|
|
|
25
|
-
#
|
|
26
|
-
sig { returns(T.nilable(
|
|
27
|
-
|
|
23
|
+
# Business details and address information
|
|
24
|
+
sig { returns(T.nilable(Sentdm::BrandData::Business)) }
|
|
25
|
+
attr_reader :business
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
sig do
|
|
28
|
+
params(business: T.nilable(Sentdm::BrandData::Business::OrHash)).void
|
|
29
|
+
end
|
|
30
|
+
attr_writer :business
|
|
32
31
|
|
|
33
|
-
#
|
|
34
|
-
sig
|
|
35
|
-
|
|
32
|
+
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
compliance: Sentdm::BrandData::Compliance::OrHash,
|
|
36
|
+
contact: Sentdm::BrandData::Contact::OrHash,
|
|
37
|
+
business: T.nilable(Sentdm::BrandData::Business::OrHash)
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
# Compliance and TCR-related information
|
|
42
|
+
compliance:,
|
|
43
|
+
# Contact information for the brand
|
|
44
|
+
contact:,
|
|
45
|
+
# Business details and address information
|
|
46
|
+
business: nil
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
override.returns(
|
|
52
|
+
{
|
|
53
|
+
compliance: Sentdm::BrandData::Compliance,
|
|
54
|
+
contact: Sentdm::BrandData::Contact,
|
|
55
|
+
business: T.nilable(Sentdm::BrandData::Business)
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
36
61
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
62
|
+
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
63
|
+
OrHash =
|
|
64
|
+
T.type_alias do
|
|
65
|
+
T.any(Sentdm::BrandData::Compliance, Sentdm::Internal::AnyHash)
|
|
66
|
+
end
|
|
40
67
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
# Brand relationship level with TCR (required for TCR)
|
|
69
|
+
sig { returns(Sentdm::TcrBrandRelationship::OrSymbol) }
|
|
70
|
+
attr_accessor :brand_relationship
|
|
44
71
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
# Business vertical/industry category (required for TCR)
|
|
73
|
+
sig { returns(Sentdm::TcrVertical::OrSymbol) }
|
|
74
|
+
attr_accessor :vertical
|
|
48
75
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
76
|
+
# List of destination countries for messaging
|
|
77
|
+
sig { returns(T.nilable(T::Array[Sentdm::DestinationCountry])) }
|
|
78
|
+
attr_accessor :destination_countries
|
|
52
79
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
80
|
+
# Expected daily messaging volume
|
|
81
|
+
sig { returns(T.nilable(String)) }
|
|
82
|
+
attr_accessor :expected_messaging_volume
|
|
56
83
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
84
|
+
# Whether this is a TCR (Campaign Registry) application
|
|
85
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
86
|
+
attr_accessor :is_tcr_application
|
|
60
87
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
88
|
+
# Additional notes about the business or use case
|
|
89
|
+
sig { returns(T.nilable(String)) }
|
|
90
|
+
attr_accessor :notes
|
|
64
91
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
92
|
+
# Phone number prefix for messaging (e.g., "+1")
|
|
93
|
+
sig { returns(T.nilable(String)) }
|
|
94
|
+
attr_accessor :phone_number_prefix
|
|
68
95
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
96
|
+
# Primary messaging use case description
|
|
97
|
+
sig { returns(T.nilable(String)) }
|
|
98
|
+
attr_accessor :primary_use_case
|
|
72
99
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
100
|
+
# Compliance and TCR-related information
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
brand_relationship: Sentdm::TcrBrandRelationship::OrSymbol,
|
|
104
|
+
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
105
|
+
destination_countries:
|
|
106
|
+
T.nilable(T::Array[Sentdm::DestinationCountry::OrHash]),
|
|
107
|
+
expected_messaging_volume: T.nilable(String),
|
|
108
|
+
is_tcr_application: T.nilable(T::Boolean),
|
|
109
|
+
notes: T.nilable(String),
|
|
110
|
+
phone_number_prefix: T.nilable(String),
|
|
111
|
+
primary_use_case: T.nilable(String)
|
|
112
|
+
).returns(T.attached_class)
|
|
113
|
+
end
|
|
114
|
+
def self.new(
|
|
115
|
+
# Brand relationship level with TCR (required for TCR)
|
|
116
|
+
brand_relationship:,
|
|
117
|
+
# Business vertical/industry category (required for TCR)
|
|
118
|
+
vertical:,
|
|
119
|
+
# List of destination countries for messaging
|
|
120
|
+
destination_countries: nil,
|
|
121
|
+
# Expected daily messaging volume
|
|
122
|
+
expected_messaging_volume: nil,
|
|
123
|
+
# Whether this is a TCR (Campaign Registry) application
|
|
124
|
+
is_tcr_application: nil,
|
|
125
|
+
# Additional notes about the business or use case
|
|
126
|
+
notes: nil,
|
|
127
|
+
# Phone number prefix for messaging (e.g., "+1")
|
|
128
|
+
phone_number_prefix: nil,
|
|
129
|
+
# Primary messaging use case description
|
|
130
|
+
primary_use_case: nil
|
|
131
|
+
)
|
|
132
|
+
end
|
|
76
133
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
134
|
+
sig do
|
|
135
|
+
override.returns(
|
|
136
|
+
{
|
|
137
|
+
brand_relationship: Sentdm::TcrBrandRelationship::OrSymbol,
|
|
138
|
+
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
139
|
+
destination_countries:
|
|
140
|
+
T.nilable(T::Array[Sentdm::DestinationCountry]),
|
|
141
|
+
expected_messaging_volume: T.nilable(String),
|
|
142
|
+
is_tcr_application: T.nilable(T::Boolean),
|
|
143
|
+
notes: T.nilable(String),
|
|
144
|
+
phone_number_prefix: T.nilable(String),
|
|
145
|
+
primary_use_case: T.nilable(String)
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
def to_hash
|
|
150
|
+
end
|
|
151
|
+
end
|
|
80
152
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
153
|
+
class Contact < Sentdm::Internal::Type::BaseModel
|
|
154
|
+
OrHash =
|
|
155
|
+
T.type_alias do
|
|
156
|
+
T.any(Sentdm::BrandData::Contact, Sentdm::Internal::AnyHash)
|
|
157
|
+
end
|
|
84
158
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
159
|
+
# Primary contact name (required)
|
|
160
|
+
sig { returns(String) }
|
|
161
|
+
attr_accessor :name
|
|
88
162
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
163
|
+
# Business/brand name
|
|
164
|
+
sig { returns(T.nilable(String)) }
|
|
165
|
+
attr_accessor :business_name
|
|
92
166
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
167
|
+
# Contact email address
|
|
168
|
+
sig { returns(T.nilable(String)) }
|
|
169
|
+
attr_accessor :email
|
|
96
170
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
171
|
+
# Contact phone number in E.164 format
|
|
172
|
+
sig { returns(T.nilable(String)) }
|
|
173
|
+
attr_accessor :phone
|
|
100
174
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
175
|
+
# Contact phone country code (e.g., "1" for US)
|
|
176
|
+
sig { returns(T.nilable(String)) }
|
|
177
|
+
attr_accessor :phone_country_code
|
|
104
178
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
179
|
+
# Contact's role in the business
|
|
180
|
+
sig { returns(T.nilable(String)) }
|
|
181
|
+
attr_accessor :role
|
|
108
182
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
183
|
+
# Contact information for the brand
|
|
184
|
+
sig do
|
|
185
|
+
params(
|
|
186
|
+
name: String,
|
|
187
|
+
business_name: T.nilable(String),
|
|
188
|
+
email: T.nilable(String),
|
|
189
|
+
phone: T.nilable(String),
|
|
190
|
+
phone_country_code: T.nilable(String),
|
|
191
|
+
role: T.nilable(String)
|
|
192
|
+
).returns(T.attached_class)
|
|
193
|
+
end
|
|
194
|
+
def self.new(
|
|
195
|
+
# Primary contact name (required)
|
|
196
|
+
name:,
|
|
197
|
+
# Business/brand name
|
|
198
|
+
business_name: nil,
|
|
199
|
+
# Contact email address
|
|
200
|
+
email: nil,
|
|
201
|
+
# Contact phone number in E.164 format
|
|
202
|
+
phone: nil,
|
|
203
|
+
# Contact phone country code (e.g., "1" for US)
|
|
204
|
+
phone_country_code: nil,
|
|
205
|
+
# Contact's role in the business
|
|
206
|
+
role: nil
|
|
207
|
+
)
|
|
208
|
+
end
|
|
112
209
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
contact_phone_country_code: T.nilable(String),
|
|
128
|
-
country: T.nilable(String),
|
|
129
|
-
country_of_registration: T.nilable(String),
|
|
130
|
-
destination_countries:
|
|
131
|
-
T.nilable(T::Array[Sentdm::DestinationCountry::OrHash]),
|
|
132
|
-
entity_type: T.nilable(Sentdm::BrandData::EntityType::OrSymbol),
|
|
133
|
-
expected_messaging_volume: T.nilable(String),
|
|
134
|
-
is_tcr_application: T.nilable(T::Boolean),
|
|
135
|
-
notes: T.nilable(String),
|
|
136
|
-
phone_number_prefix: T.nilable(String),
|
|
137
|
-
postal_code: T.nilable(String),
|
|
138
|
-
primary_use_case: T.nilable(String),
|
|
139
|
-
state: T.nilable(String),
|
|
140
|
-
street: T.nilable(String),
|
|
141
|
-
tax_id: T.nilable(String),
|
|
142
|
-
tax_id_type: T.nilable(String)
|
|
143
|
-
).returns(T.attached_class)
|
|
210
|
+
sig do
|
|
211
|
+
override.returns(
|
|
212
|
+
{
|
|
213
|
+
name: String,
|
|
214
|
+
business_name: T.nilable(String),
|
|
215
|
+
email: T.nilable(String),
|
|
216
|
+
phone: T.nilable(String),
|
|
217
|
+
phone_country_code: T.nilable(String),
|
|
218
|
+
role: T.nilable(String)
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
end
|
|
222
|
+
def to_hash
|
|
223
|
+
end
|
|
144
224
|
end
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
# Brand name for KYC submission
|
|
153
|
-
brand_name: nil,
|
|
154
|
-
# Legal business name
|
|
155
|
-
business_legal_name: nil,
|
|
156
|
-
# Business/brand name
|
|
157
|
-
business_name: nil,
|
|
158
|
-
# Contact's role in the business
|
|
159
|
-
business_role: nil,
|
|
160
|
-
# Business website URL
|
|
161
|
-
business_url: nil,
|
|
225
|
+
|
|
226
|
+
class Business < Sentdm::Internal::Type::BaseModel
|
|
227
|
+
OrHash =
|
|
228
|
+
T.type_alias do
|
|
229
|
+
T.any(Sentdm::BrandData::Business, Sentdm::Internal::AnyHash)
|
|
230
|
+
end
|
|
231
|
+
|
|
162
232
|
# City
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
# Contact phone number in E.164 format
|
|
167
|
-
contact_phone: nil,
|
|
168
|
-
# Contact phone country code (e.g., "1" for US)
|
|
169
|
-
contact_phone_country_code: nil,
|
|
233
|
+
sig { returns(T.nilable(String)) }
|
|
234
|
+
attr_accessor :city
|
|
235
|
+
|
|
170
236
|
# Country code (e.g., US, CA)
|
|
171
|
-
|
|
237
|
+
sig { returns(T.nilable(String)) }
|
|
238
|
+
attr_accessor :country
|
|
239
|
+
|
|
172
240
|
# Country where the business is registered
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
241
|
+
sig { returns(T.nilable(String)) }
|
|
242
|
+
attr_accessor :country_of_registration
|
|
243
|
+
|
|
176
244
|
# Business entity type
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
#
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
245
|
+
sig do
|
|
246
|
+
returns(T.nilable(Sentdm::BrandData::Business::EntityType::OrSymbol))
|
|
247
|
+
end
|
|
248
|
+
attr_accessor :entity_type
|
|
249
|
+
|
|
250
|
+
# Legal business name
|
|
251
|
+
sig { returns(T.nilable(String)) }
|
|
252
|
+
attr_accessor :legal_name
|
|
253
|
+
|
|
186
254
|
# Postal/ZIP code
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
255
|
+
sig { returns(T.nilable(String)) }
|
|
256
|
+
attr_accessor :postal_code
|
|
257
|
+
|
|
190
258
|
# State/province code
|
|
191
|
-
|
|
259
|
+
sig { returns(T.nilable(String)) }
|
|
260
|
+
attr_accessor :state
|
|
261
|
+
|
|
192
262
|
# Street address
|
|
193
|
-
|
|
263
|
+
sig { returns(T.nilable(String)) }
|
|
264
|
+
attr_accessor :street
|
|
265
|
+
|
|
194
266
|
# Tax ID/EIN number
|
|
195
|
-
|
|
267
|
+
sig { returns(T.nilable(String)) }
|
|
268
|
+
attr_accessor :tax_id
|
|
269
|
+
|
|
196
270
|
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
end
|
|
271
|
+
sig { returns(T.nilable(String)) }
|
|
272
|
+
attr_accessor :tax_id_type
|
|
200
273
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
business_legal_name: T.nilable(String),
|
|
209
|
-
business_name: T.nilable(String),
|
|
210
|
-
business_role: T.nilable(String),
|
|
211
|
-
business_url: T.nilable(String),
|
|
274
|
+
# Business website URL
|
|
275
|
+
sig { returns(T.nilable(String)) }
|
|
276
|
+
attr_accessor :url
|
|
277
|
+
|
|
278
|
+
# Business details and address information
|
|
279
|
+
sig do
|
|
280
|
+
params(
|
|
212
281
|
city: T.nilable(String),
|
|
213
|
-
contact_email: T.nilable(String),
|
|
214
|
-
contact_phone: T.nilable(String),
|
|
215
|
-
contact_phone_country_code: T.nilable(String),
|
|
216
282
|
country: T.nilable(String),
|
|
217
283
|
country_of_registration: T.nilable(String),
|
|
218
|
-
|
|
219
|
-
T.nilable(
|
|
220
|
-
|
|
221
|
-
expected_messaging_volume: T.nilable(String),
|
|
222
|
-
is_tcr_application: T.nilable(T::Boolean),
|
|
223
|
-
notes: T.nilable(String),
|
|
224
|
-
phone_number_prefix: T.nilable(String),
|
|
284
|
+
entity_type:
|
|
285
|
+
T.nilable(Sentdm::BrandData::Business::EntityType::OrSymbol),
|
|
286
|
+
legal_name: T.nilable(String),
|
|
225
287
|
postal_code: T.nilable(String),
|
|
226
|
-
primary_use_case: T.nilable(String),
|
|
227
288
|
state: T.nilable(String),
|
|
228
289
|
street: T.nilable(String),
|
|
229
290
|
tax_id: T.nilable(String),
|
|
230
|
-
tax_id_type: T.nilable(String)
|
|
231
|
-
|
|
291
|
+
tax_id_type: T.nilable(String),
|
|
292
|
+
url: T.nilable(String)
|
|
293
|
+
).returns(T.attached_class)
|
|
294
|
+
end
|
|
295
|
+
def self.new(
|
|
296
|
+
# City
|
|
297
|
+
city: nil,
|
|
298
|
+
# Country code (e.g., US, CA)
|
|
299
|
+
country: nil,
|
|
300
|
+
# Country where the business is registered
|
|
301
|
+
country_of_registration: nil,
|
|
302
|
+
# Business entity type
|
|
303
|
+
entity_type: nil,
|
|
304
|
+
# Legal business name
|
|
305
|
+
legal_name: nil,
|
|
306
|
+
# Postal/ZIP code
|
|
307
|
+
postal_code: nil,
|
|
308
|
+
# State/province code
|
|
309
|
+
state: nil,
|
|
310
|
+
# Street address
|
|
311
|
+
street: nil,
|
|
312
|
+
# Tax ID/EIN number
|
|
313
|
+
tax_id: nil,
|
|
314
|
+
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
315
|
+
tax_id_type: nil,
|
|
316
|
+
# Business website URL
|
|
317
|
+
url: nil
|
|
232
318
|
)
|
|
233
|
-
|
|
234
|
-
def to_hash
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
# Business entity type
|
|
238
|
-
module EntityType
|
|
239
|
-
extend Sentdm::Internal::Type::Enum
|
|
240
|
-
|
|
241
|
-
TaggedSymbol =
|
|
242
|
-
T.type_alias { T.all(Symbol, Sentdm::BrandData::EntityType) }
|
|
243
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
244
|
-
|
|
245
|
-
PRIVATE_PROFIT =
|
|
246
|
-
T.let(:PRIVATE_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
247
|
-
PUBLIC_PROFIT =
|
|
248
|
-
T.let(:PUBLIC_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
249
|
-
NON_PROFIT =
|
|
250
|
-
T.let(:NON_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
251
|
-
SOLE_PROPRIETOR =
|
|
252
|
-
T.let(:SOLE_PROPRIETOR, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
253
|
-
GOVERNMENT =
|
|
254
|
-
T.let(:GOVERNMENT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
319
|
+
end
|
|
255
320
|
|
|
256
321
|
sig do
|
|
257
322
|
override.returns(
|
|
258
|
-
|
|
323
|
+
{
|
|
324
|
+
city: T.nilable(String),
|
|
325
|
+
country: T.nilable(String),
|
|
326
|
+
country_of_registration: T.nilable(String),
|
|
327
|
+
entity_type:
|
|
328
|
+
T.nilable(Sentdm::BrandData::Business::EntityType::OrSymbol),
|
|
329
|
+
legal_name: T.nilable(String),
|
|
330
|
+
postal_code: T.nilable(String),
|
|
331
|
+
state: T.nilable(String),
|
|
332
|
+
street: T.nilable(String),
|
|
333
|
+
tax_id: T.nilable(String),
|
|
334
|
+
tax_id_type: T.nilable(String),
|
|
335
|
+
url: T.nilable(String)
|
|
336
|
+
}
|
|
259
337
|
)
|
|
260
338
|
end
|
|
261
|
-
def
|
|
339
|
+
def to_hash
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Business entity type
|
|
343
|
+
module EntityType
|
|
344
|
+
extend Sentdm::Internal::Type::Enum
|
|
345
|
+
|
|
346
|
+
TaggedSymbol =
|
|
347
|
+
T.type_alias do
|
|
348
|
+
T.all(Symbol, Sentdm::BrandData::Business::EntityType)
|
|
349
|
+
end
|
|
350
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
351
|
+
|
|
352
|
+
PRIVATE_PROFIT =
|
|
353
|
+
T.let(
|
|
354
|
+
:PRIVATE_PROFIT,
|
|
355
|
+
Sentdm::BrandData::Business::EntityType::TaggedSymbol
|
|
356
|
+
)
|
|
357
|
+
PUBLIC_PROFIT =
|
|
358
|
+
T.let(
|
|
359
|
+
:PUBLIC_PROFIT,
|
|
360
|
+
Sentdm::BrandData::Business::EntityType::TaggedSymbol
|
|
361
|
+
)
|
|
362
|
+
NON_PROFIT =
|
|
363
|
+
T.let(
|
|
364
|
+
:NON_PROFIT,
|
|
365
|
+
Sentdm::BrandData::Business::EntityType::TaggedSymbol
|
|
366
|
+
)
|
|
367
|
+
SOLE_PROPRIETOR =
|
|
368
|
+
T.let(
|
|
369
|
+
:SOLE_PROPRIETOR,
|
|
370
|
+
Sentdm::BrandData::Business::EntityType::TaggedSymbol
|
|
371
|
+
)
|
|
372
|
+
GOVERNMENT =
|
|
373
|
+
T.let(
|
|
374
|
+
:GOVERNMENT,
|
|
375
|
+
Sentdm::BrandData::Business::EntityType::TaggedSymbol
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
sig do
|
|
379
|
+
override.returns(
|
|
380
|
+
T::Array[Sentdm::BrandData::Business::EntityType::TaggedSymbol]
|
|
381
|
+
)
|
|
382
|
+
end
|
|
383
|
+
def self.values
|
|
384
|
+
end
|
|
262
385
|
end
|
|
263
386
|
end
|
|
264
387
|
end
|