sentdm 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +9 -9
- data/lib/sentdm/client.rb +0 -1
- data/lib/sentdm/models/api_meta.rb +1 -9
- data/lib/sentdm/models/brand_data.rb +235 -198
- data/lib/sentdm/models/brand_with_kyc.rb +249 -214
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +0 -1
- data/lib/sentdm/models/contact_create_params.rb +13 -6
- data/lib/sentdm/models/contact_delete_params.rb +8 -1
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
- data/lib/sentdm/models/contact_update_params.rb +13 -6
- data/lib/sentdm/models/me_retrieve_params.rb +7 -1
- data/lib/sentdm/models/me_retrieve_response.rb +152 -7
- data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
- data/lib/sentdm/models/message_send_params.rb +17 -10
- data/lib/sentdm/models/mutation_request.rb +6 -6
- data/lib/sentdm/models/profile_complete_params.rb +13 -6
- data/lib/sentdm/models/profile_create_params.rb +192 -10
- data/lib/sentdm/models/profile_delete_params.rb +18 -18
- data/lib/sentdm/models/profile_detail.rb +144 -95
- data/lib/sentdm/models/profile_list_params.rb +7 -1
- data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
- data/lib/sentdm/models/profile_update_params.rb +142 -22
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_delete_params.rb +13 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +17 -10
- data/lib/sentdm/models/template_variable.rb +7 -1
- data/lib/sentdm/models/user_invite_params.rb +13 -6
- data/lib/sentdm/models/user_list_params.rb +7 -1
- data/lib/sentdm/models/user_remove_params.rb +17 -17
- data/lib/sentdm/models/user_retrieve_params.rb +7 -1
- data/lib/sentdm/models/user_update_role_params.rb +15 -16
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +7 -1
- data/lib/sentdm/models/webhook_test_params.rb +13 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
- data/lib/sentdm/models/webhook_update_params.rb +13 -6
- data/lib/sentdm/models.rb +0 -12
- data/lib/sentdm/resources/brands/campaigns.rb +0 -129
- data/lib/sentdm/resources/brands.rb +0 -112
- data/lib/sentdm/resources/contacts.rb +43 -20
- data/lib/sentdm/resources/lookup.rb +0 -21
- data/lib/sentdm/resources/me.rb +24 -5
- data/lib/sentdm/resources/messages.rb +24 -8
- data/lib/sentdm/resources/profiles.rb +116 -32
- data/lib/sentdm/resources/templates.rb +47 -24
- data/lib/sentdm/resources/users.rb +40 -23
- data/lib/sentdm/resources/webhooks.rb +92 -34
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -14
- data/rbi/sentdm/client.rbi +0 -1
- data/rbi/sentdm/models/api_meta.rbi +4 -18
- data/rbi/sentdm/models/brand_data.rbi +326 -203
- data/rbi/sentdm/models/brand_with_kyc.rbi +334 -216
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +6 -8
- data/rbi/sentdm/models/contact_create_params.rbi +19 -10
- data/rbi/sentdm/models/contact_delete_params.rbi +9 -0
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/contact_update_params.rbi +19 -10
- data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
- data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
- data/rbi/sentdm/models/message_send_params.rbi +22 -13
- data/rbi/sentdm/models/mutation_request.rbi +10 -10
- data/rbi/sentdm/models/profile_complete_params.rbi +19 -10
- data/rbi/sentdm/models/profile_create_params.rbi +323 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
- data/rbi/sentdm/models/profile_detail.rbi +184 -128
- data/rbi/sentdm/models/profile_list_params.rbi +16 -5
- data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/profile_update_params.rbi +231 -30
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_delete_params.rbi +19 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/template_update_params.rbi +22 -13
- data/rbi/sentdm/models/template_variable.rbi +6 -0
- data/rbi/sentdm/models/user_invite_params.rbi +19 -10
- data/rbi/sentdm/models/user_list_params.rbi +16 -5
- data/rbi/sentdm/models/user_remove_params.rbi +35 -23
- data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +15 -1
- data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
- data/rbi/sentdm/models.rbi +0 -12
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -95
- data/rbi/sentdm/resources/brands.rbi +0 -80
- data/rbi/sentdm/resources/contacts.rbi +37 -12
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/rbi/sentdm/resources/me.rbi +25 -7
- data/rbi/sentdm/resources/messages.rbi +17 -4
- data/rbi/sentdm/resources/profiles.rbi +178 -38
- data/rbi/sentdm/resources/templates.rbi +47 -19
- data/rbi/sentdm/resources/users.rbi +47 -25
- data/rbi/sentdm/resources/webhooks.rbi +92 -20
- data/sig/sentdm/models/api_meta.rbs +2 -16
- data/sig/sentdm/models/brand_data.rbs +188 -142
- data/sig/sentdm/models/brand_with_kyc.rbs +184 -133
- data/sig/sentdm/models/contact_create_params.rbs +16 -5
- data/sig/sentdm/models/contact_delete_params.rbs +11 -1
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/contact_update_params.rbs +13 -6
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
- data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
- data/sig/sentdm/models/message_send_params.rbs +15 -8
- data/sig/sentdm/models/mutation_request.rbs +5 -5
- data/sig/sentdm/models/profile_complete_params.rbs +13 -6
- data/sig/sentdm/models/profile_create_params.rbs +111 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -13
- data/sig/sentdm/models/profile_detail.rbs +105 -84
- data/sig/sentdm/models/profile_list_params.rbs +14 -3
- data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/profile_update_params.rbs +86 -17
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_delete_params.rbs +16 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/template_update_params.rbs +15 -8
- data/sig/sentdm/models/template_variable.rbs +5 -0
- data/sig/sentdm/models/user_invite_params.rbs +13 -6
- data/sig/sentdm/models/user_list_params.rbs +14 -3
- data/sig/sentdm/models/user_remove_params.rbs +23 -13
- data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/user_update_role_params.rbs +17 -17
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -1
- data/sig/sentdm/models/webhook_test_params.rbs +13 -6
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
- data/sig/sentdm/models/webhook_update_params.rbs +13 -6
- data/sig/sentdm/models.rbs +0 -12
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -29
- data/sig/sentdm/resources/brands.rbs +0 -25
- data/sig/sentdm/resources/contacts.rbs +7 -2
- data/sig/sentdm/resources/lookup.rbs +0 -5
- data/sig/sentdm/resources/me.rbs +1 -0
- data/sig/sentdm/resources/messages.rbs +4 -1
- data/sig/sentdm/resources/profiles.rbs +19 -8
- data/sig/sentdm/resources/templates.rbs +9 -3
- data/sig/sentdm/resources/users.rbs +10 -7
- data/sig/sentdm/resources/webhooks.rbs +18 -5
- metadata +1 -40
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
- data/lib/sentdm/models/brand_create_params.rb +0 -41
- data/lib/sentdm/models/brand_delete_params.rb +0 -34
- data/lib/sentdm/models/brand_list_params.rb +0 -14
- data/lib/sentdm/models/brand_list_response.rb +0 -43
- data/lib/sentdm/models/brand_update_params.rb +0 -48
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
- data/lib/sentdm/models/brands/campaign_list_response.rb +0 -47
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +0 -20
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +0 -104
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +0 -74
- data/rbi/sentdm/models/brand_create_params.rbi +0 -68
- data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
- data/rbi/sentdm/models/brand_list_params.rbi +0 -27
- data/rbi/sentdm/models/brand_list_response.rbi +0 -71
- data/rbi/sentdm/models/brand_update_params.rbi +0 -74
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +0 -79
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +0 -84
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +0 -82
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +0 -85
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +0 -38
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +0 -183
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
- data/sig/sentdm/models/brand_create_params.rbs +0 -36
- data/sig/sentdm/models/brand_delete_params.rbs +0 -36
- data/sig/sentdm/models/brand_list_params.rbs +0 -14
- data/sig/sentdm/models/brand_list_response.rbs +0 -39
- data/sig/sentdm/models/brand_update_params.rbs +0 -45
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +0 -46
- data/sig/sentdm/models/brands/campaign_list_params.rbs +0 -25
- data/sig/sentdm/models/brands/campaign_list_response.rbs +0 -41
- data/sig/sentdm/models/brands/campaign_update_params.rbs +0 -52
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +0 -23
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +0 -102
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05c854c79f1208c28d3ecacb5111648f56c2d850f1b2a353462a19ef9559f70f
|
|
4
|
+
data.tar.gz: 07d88b86954305d084b1dcd5a54785349979e08d66dc68b292be60845f44e05a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d464e1edb179e1b3ef4b76c017417016ff67f4d16d02345985c1177493cdb286285cf00eb4a6a9347a1361aa03a3783f8b2646d889d1fc16ef7b0a6782cde06a
|
|
7
|
+
data.tar.gz: 8bc5abf3c6429faa22188eef6711467142b6b9623fbd208ae5b6171d65f7f44beb7b9b13fad99ab9ba6c29f9d652234e1776bce5b61397f09dd24e4ba1ba89e1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 (2026-03-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.3.1...v0.4.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.3.1...v0.4.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([bd1c867](https://github.com/sentdm/sent-dm-ruby/commit/bd1c86786ab541d177d0dab68b56a584becadafd))
|
|
10
|
+
|
|
3
11
|
## 0.3.1 (2026-03-11)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.3.0...v0.3.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.3.0...v0.3.1)
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
26
26
|
<!-- x-release-please-start-version -->
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
|
-
gem "sentdm", "~> 0.
|
|
29
|
+
gem "sentdm", "~> 0.4.0"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<!-- x-release-please-end -->
|
|
@@ -270,23 +270,23 @@ sent_dm.messages.send_(**params)
|
|
|
270
270
|
Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:
|
|
271
271
|
|
|
272
272
|
```ruby
|
|
273
|
-
# :
|
|
274
|
-
puts(Sentdm::
|
|
273
|
+
# :SELF_DECLARED
|
|
274
|
+
puts(Sentdm::BrandWithKYC::IdentityStatus::SELF_DECLARED)
|
|
275
275
|
|
|
276
|
-
# Revealed type: `T.all(Sentdm::
|
|
277
|
-
T.reveal_type(Sentdm::
|
|
276
|
+
# Revealed type: `T.all(Sentdm::BrandWithKYC::IdentityStatus, Symbol)`
|
|
277
|
+
T.reveal_type(Sentdm::BrandWithKYC::IdentityStatus::SELF_DECLARED)
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
|
|
281
281
|
|
|
282
282
|
```ruby
|
|
283
|
-
Sentdm::
|
|
284
|
-
|
|
283
|
+
Sentdm::BrandWithKYC.new(
|
|
284
|
+
identity_status: Sentdm::BrandWithKYC::IdentityStatus::SELF_DECLARED,
|
|
285
285
|
# …
|
|
286
286
|
)
|
|
287
287
|
|
|
288
|
-
Sentdm::
|
|
289
|
-
|
|
288
|
+
Sentdm::BrandWithKYC.new(
|
|
289
|
+
identity_status: :SELF_DECLARED,
|
|
290
290
|
# …
|
|
291
291
|
)
|
|
292
292
|
```
|
data/lib/sentdm/client.rb
CHANGED
|
@@ -9,12 +9,6 @@ module Sentdm
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :request_id, String
|
|
11
11
|
|
|
12
|
-
# @!attribute response_time_ms
|
|
13
|
-
# Response time in milliseconds (optional)
|
|
14
|
-
#
|
|
15
|
-
# @return [Integer, nil]
|
|
16
|
-
optional :response_time_ms, Integer, nil?: true
|
|
17
|
-
|
|
18
12
|
# @!attribute timestamp
|
|
19
13
|
# Server timestamp when the response was generated
|
|
20
14
|
#
|
|
@@ -27,13 +21,11 @@ module Sentdm
|
|
|
27
21
|
# @return [String, nil]
|
|
28
22
|
optional :version, String
|
|
29
23
|
|
|
30
|
-
# @!method initialize(request_id: nil,
|
|
24
|
+
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
31
25
|
# Request and response metadata
|
|
32
26
|
#
|
|
33
27
|
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
34
28
|
#
|
|
35
|
-
# @param response_time_ms [Integer, nil] Response time in milliseconds (optional)
|
|
36
|
-
#
|
|
37
29
|
# @param timestamp [Time] Server timestamp when the response was generated
|
|
38
30
|
#
|
|
39
31
|
# @param version [String] API version used for this request
|
|
@@ -3,234 +3,271 @@
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
5
|
class BrandData < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute
|
|
7
|
-
#
|
|
6
|
+
# @!attribute compliance
|
|
7
|
+
# Compliance and TCR-related information
|
|
8
8
|
#
|
|
9
|
-
# @return [
|
|
10
|
-
required :
|
|
9
|
+
# @return [Sentdm::Models::BrandData::Compliance]
|
|
10
|
+
required :compliance, -> { Sentdm::BrandData::Compliance }
|
|
11
11
|
|
|
12
|
-
# @!attribute
|
|
13
|
-
#
|
|
12
|
+
# @!attribute contact
|
|
13
|
+
# Contact information for the brand
|
|
14
14
|
#
|
|
15
|
-
# @return [
|
|
16
|
-
required :
|
|
15
|
+
# @return [Sentdm::Models::BrandData::Contact]
|
|
16
|
+
required :contact, -> { Sentdm::BrandData::Contact }
|
|
17
17
|
|
|
18
|
-
# @!attribute
|
|
19
|
-
# Business
|
|
18
|
+
# @!attribute business
|
|
19
|
+
# Business details and address information
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
22
|
-
|
|
21
|
+
# @return [Sentdm::Models::BrandData::Business, nil]
|
|
22
|
+
optional :business, -> { Sentdm::BrandData::Business }, nil?: true
|
|
23
23
|
|
|
24
|
-
# @!
|
|
25
|
-
# Brand
|
|
24
|
+
# @!method initialize(compliance:, contact:, business: nil)
|
|
25
|
+
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
26
26
|
#
|
|
27
|
-
# @
|
|
28
|
-
optional :brand_name, String, api_name: :brandName, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute business_legal_name
|
|
31
|
-
# Legal business name
|
|
27
|
+
# @param compliance [Sentdm::Models::BrandData::Compliance] Compliance and TCR-related information
|
|
32
28
|
#
|
|
33
|
-
# @
|
|
34
|
-
optional :business_legal_name, String, api_name: :businessLegalName, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!attribute business_name
|
|
37
|
-
# Business/brand name
|
|
29
|
+
# @param contact [Sentdm::Models::BrandData::Contact] Contact information for the brand
|
|
38
30
|
#
|
|
39
|
-
# @
|
|
40
|
-
optional :business_name, String, api_name: :businessName, nil?: true
|
|
31
|
+
# @param business [Sentdm::Models::BrandData::Business, nil] Business details and address information
|
|
41
32
|
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
# @see Sentdm::Models::BrandData#compliance
|
|
34
|
+
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
35
|
+
# @!attribute brand_relationship
|
|
36
|
+
# Brand relationship level with TCR (required for TCR)
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
39
|
+
required :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, api_name: :brandRelationship
|
|
47
40
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
# @!attribute vertical
|
|
42
|
+
# Business vertical/industry category (required for TCR)
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Sentdm::Models::TcrVertical]
|
|
45
|
+
required :vertical, enum: -> { Sentdm::TcrVertical }
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
# @!attribute destination_countries
|
|
48
|
+
# List of destination countries for messaging
|
|
49
|
+
#
|
|
50
|
+
# @return [Array<Sentdm::Models::DestinationCountry>, nil]
|
|
51
|
+
optional :destination_countries,
|
|
52
|
+
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] },
|
|
53
|
+
api_name: :destinationCountries,
|
|
54
|
+
nil?: true
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
# @!attribute expected_messaging_volume
|
|
57
|
+
# Expected daily messaging volume
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
optional :expected_messaging_volume, String, api_name: :expectedMessagingVolume, nil?: true
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
# @!attribute is_tcr_application
|
|
63
|
+
# Whether this is a TCR (Campaign Registry) application
|
|
64
|
+
#
|
|
65
|
+
# @return [Boolean, nil]
|
|
66
|
+
optional :is_tcr_application, Sentdm::Internal::Type::Boolean, api_name: :isTcrApplication, nil?: true
|
|
71
67
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
# @!attribute notes
|
|
69
|
+
# Additional notes about the business or use case
|
|
70
|
+
#
|
|
71
|
+
# @return [String, nil]
|
|
72
|
+
optional :notes, String, nil?: true
|
|
77
73
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
# @!attribute phone_number_prefix
|
|
75
|
+
# Phone number prefix for messaging (e.g., "+1")
|
|
76
|
+
#
|
|
77
|
+
# @return [String, nil]
|
|
78
|
+
optional :phone_number_prefix, String, api_name: :phoneNumberPrefix, nil?: true
|
|
83
79
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
# @!attribute primary_use_case
|
|
81
|
+
# Primary messaging use case description
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
optional :primary_use_case, String, api_name: :primaryUseCase, nil?: true
|
|
89
85
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
86
|
+
# @!method initialize(brand_relationship:, vertical:, destination_countries: nil, expected_messaging_volume: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil)
|
|
87
|
+
# Compliance and TCR-related information
|
|
88
|
+
#
|
|
89
|
+
# @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship] Brand relationship level with TCR (required for TCR)
|
|
90
|
+
#
|
|
91
|
+
# @param vertical [Symbol, Sentdm::Models::TcrVertical] Business vertical/industry category (required for TCR)
|
|
92
|
+
#
|
|
93
|
+
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>, nil] List of destination countries for messaging
|
|
94
|
+
#
|
|
95
|
+
# @param expected_messaging_volume [String, nil] Expected daily messaging volume
|
|
96
|
+
#
|
|
97
|
+
# @param is_tcr_application [Boolean, nil] Whether this is a TCR (Campaign Registry) application
|
|
98
|
+
#
|
|
99
|
+
# @param notes [String, nil] Additional notes about the business or use case
|
|
100
|
+
#
|
|
101
|
+
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
102
|
+
#
|
|
103
|
+
# @param primary_use_case [String, nil] Primary messaging use case description
|
|
104
|
+
end
|
|
104
105
|
|
|
105
|
-
#
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
# @see Sentdm::Models::BrandData#contact
|
|
107
|
+
class Contact < Sentdm::Internal::Type::BaseModel
|
|
108
|
+
# @!attribute name
|
|
109
|
+
# Primary contact name (required)
|
|
110
|
+
#
|
|
111
|
+
# @return [String]
|
|
112
|
+
required :name, String
|
|
110
113
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
# @!attribute business_name
|
|
115
|
+
# Business/brand name
|
|
116
|
+
#
|
|
117
|
+
# @return [String, nil]
|
|
118
|
+
optional :business_name, String, api_name: :businessName, nil?: true
|
|
116
119
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
# @!attribute email
|
|
121
|
+
# Contact email address
|
|
122
|
+
#
|
|
123
|
+
# @return [String, nil]
|
|
124
|
+
optional :email, String, nil?: true
|
|
122
125
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
# @!attribute phone
|
|
127
|
+
# Contact phone number in E.164 format
|
|
128
|
+
#
|
|
129
|
+
# @return [String, nil]
|
|
130
|
+
optional :phone, String, nil?: true
|
|
128
131
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
# @!attribute phone_country_code
|
|
133
|
+
# Contact phone country code (e.g., "1" for US)
|
|
134
|
+
#
|
|
135
|
+
# @return [String, nil]
|
|
136
|
+
optional :phone_country_code, String, api_name: :phoneCountryCode, nil?: true
|
|
134
137
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
# @!attribute role
|
|
139
|
+
# Contact's role in the business
|
|
140
|
+
#
|
|
141
|
+
# @return [String, nil]
|
|
142
|
+
optional :role, String, nil?: true
|
|
140
143
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
# @!method initialize(name:, business_name: nil, email: nil, phone: nil, phone_country_code: nil, role: nil)
|
|
145
|
+
# Contact information for the brand
|
|
146
|
+
#
|
|
147
|
+
# @param name [String] Primary contact name (required)
|
|
148
|
+
#
|
|
149
|
+
# @param business_name [String, nil] Business/brand name
|
|
150
|
+
#
|
|
151
|
+
# @param email [String, nil] Contact email address
|
|
152
|
+
#
|
|
153
|
+
# @param phone [String, nil] Contact phone number in E.164 format
|
|
154
|
+
#
|
|
155
|
+
# @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
156
|
+
#
|
|
157
|
+
# @param role [String, nil] Contact's role in the business
|
|
158
|
+
end
|
|
146
159
|
|
|
147
|
-
#
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
160
|
+
# @see Sentdm::Models::BrandData#business
|
|
161
|
+
class Business < Sentdm::Internal::Type::BaseModel
|
|
162
|
+
# @!attribute city
|
|
163
|
+
# City
|
|
164
|
+
#
|
|
165
|
+
# @return [String, nil]
|
|
166
|
+
optional :city, String, nil?: true
|
|
152
167
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
168
|
+
# @!attribute country
|
|
169
|
+
# Country code (e.g., US, CA)
|
|
170
|
+
#
|
|
171
|
+
# @return [String, nil]
|
|
172
|
+
optional :country, String, nil?: true
|
|
158
173
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
174
|
+
# @!attribute country_of_registration
|
|
175
|
+
# Country where the business is registered
|
|
176
|
+
#
|
|
177
|
+
# @return [String, nil]
|
|
178
|
+
optional :country_of_registration, String, api_name: :countryOfRegistration, nil?: true
|
|
164
179
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
#
|
|
174
|
-
# @param brand_name [String, nil] Brand name for KYC submission
|
|
175
|
-
#
|
|
176
|
-
# @param business_legal_name [String, nil] Legal business name
|
|
177
|
-
#
|
|
178
|
-
# @param business_name [String, nil] Business/brand name
|
|
179
|
-
#
|
|
180
|
-
# @param business_role [String, nil] Contact's role in the business
|
|
181
|
-
#
|
|
182
|
-
# @param business_url [String, nil] Business website URL
|
|
183
|
-
#
|
|
184
|
-
# @param city [String, nil] City
|
|
185
|
-
#
|
|
186
|
-
# @param contact_email [String, nil] Contact email address
|
|
187
|
-
#
|
|
188
|
-
# @param contact_phone [String, nil] Contact phone number in E.164 format
|
|
189
|
-
#
|
|
190
|
-
# @param contact_phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
191
|
-
#
|
|
192
|
-
# @param country [String, nil] Country code (e.g., US, CA)
|
|
193
|
-
#
|
|
194
|
-
# @param country_of_registration [String, nil] Country where the business is registered
|
|
195
|
-
#
|
|
196
|
-
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>, nil] List of destination countries for messaging
|
|
197
|
-
#
|
|
198
|
-
# @param entity_type [Symbol, Sentdm::Models::BrandData::EntityType, nil] Business entity type
|
|
199
|
-
#
|
|
200
|
-
# @param expected_messaging_volume [String, nil] Expected daily messaging volume
|
|
201
|
-
#
|
|
202
|
-
# @param is_tcr_application [Boolean, nil] Whether this is a TCR (Campaign Registry) application
|
|
203
|
-
#
|
|
204
|
-
# @param notes [String, nil] Additional notes about the business or use case
|
|
205
|
-
#
|
|
206
|
-
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
207
|
-
#
|
|
208
|
-
# @param postal_code [String, nil] Postal/ZIP code
|
|
209
|
-
#
|
|
210
|
-
# @param primary_use_case [String, nil] Primary messaging use case description
|
|
211
|
-
#
|
|
212
|
-
# @param state [String, nil] State/province code
|
|
213
|
-
#
|
|
214
|
-
# @param street [String, nil] Street address
|
|
215
|
-
#
|
|
216
|
-
# @param tax_id [String, nil] Tax ID/EIN number
|
|
217
|
-
#
|
|
218
|
-
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
180
|
+
# @!attribute entity_type
|
|
181
|
+
# Business entity type
|
|
182
|
+
#
|
|
183
|
+
# @return [Symbol, Sentdm::Models::BrandData::Business::EntityType, nil]
|
|
184
|
+
optional :entity_type,
|
|
185
|
+
enum: -> { Sentdm::BrandData::Business::EntityType },
|
|
186
|
+
api_name: :entityType,
|
|
187
|
+
nil?: true
|
|
219
188
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
# @!
|
|
233
|
-
#
|
|
189
|
+
# @!attribute legal_name
|
|
190
|
+
# Legal business name
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :legal_name, String, api_name: :legalName, nil?: true
|
|
194
|
+
|
|
195
|
+
# @!attribute postal_code
|
|
196
|
+
# Postal/ZIP code
|
|
197
|
+
#
|
|
198
|
+
# @return [String, nil]
|
|
199
|
+
optional :postal_code, String, api_name: :postalCode, nil?: true
|
|
200
|
+
|
|
201
|
+
# @!attribute state
|
|
202
|
+
# State/province code
|
|
203
|
+
#
|
|
204
|
+
# @return [String, nil]
|
|
205
|
+
optional :state, String, nil?: true
|
|
206
|
+
|
|
207
|
+
# @!attribute street
|
|
208
|
+
# Street address
|
|
209
|
+
#
|
|
210
|
+
# @return [String, nil]
|
|
211
|
+
optional :street, String, nil?: true
|
|
212
|
+
|
|
213
|
+
# @!attribute tax_id
|
|
214
|
+
# Tax ID/EIN number
|
|
215
|
+
#
|
|
216
|
+
# @return [String, nil]
|
|
217
|
+
optional :tax_id, String, api_name: :taxId, nil?: true
|
|
218
|
+
|
|
219
|
+
# @!attribute tax_id_type
|
|
220
|
+
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
221
|
+
#
|
|
222
|
+
# @return [String, nil]
|
|
223
|
+
optional :tax_id_type, String, api_name: :taxIdType, nil?: true
|
|
224
|
+
|
|
225
|
+
# @!attribute url
|
|
226
|
+
# Business website URL
|
|
227
|
+
#
|
|
228
|
+
# @return [String, nil]
|
|
229
|
+
optional :url, String, nil?: true
|
|
230
|
+
|
|
231
|
+
# @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
|
|
232
|
+
# Business details and address information
|
|
233
|
+
#
|
|
234
|
+
# @param city [String, nil] City
|
|
235
|
+
#
|
|
236
|
+
# @param country [String, nil] Country code (e.g., US, CA)
|
|
237
|
+
#
|
|
238
|
+
# @param country_of_registration [String, nil] Country where the business is registered
|
|
239
|
+
#
|
|
240
|
+
# @param entity_type [Symbol, Sentdm::Models::BrandData::Business::EntityType, nil] Business entity type
|
|
241
|
+
#
|
|
242
|
+
# @param legal_name [String, nil] Legal business name
|
|
243
|
+
#
|
|
244
|
+
# @param postal_code [String, nil] Postal/ZIP code
|
|
245
|
+
#
|
|
246
|
+
# @param state [String, nil] State/province code
|
|
247
|
+
#
|
|
248
|
+
# @param street [String, nil] Street address
|
|
249
|
+
#
|
|
250
|
+
# @param tax_id [String, nil] Tax ID/EIN number
|
|
251
|
+
#
|
|
252
|
+
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
253
|
+
#
|
|
254
|
+
# @param url [String, nil] Business website URL
|
|
255
|
+
|
|
256
|
+
# Business entity type
|
|
257
|
+
#
|
|
258
|
+
# @see Sentdm::Models::BrandData::Business#entity_type
|
|
259
|
+
module EntityType
|
|
260
|
+
extend Sentdm::Internal::Type::Enum
|
|
261
|
+
|
|
262
|
+
PRIVATE_PROFIT = :PRIVATE_PROFIT
|
|
263
|
+
PUBLIC_PROFIT = :PUBLIC_PROFIT
|
|
264
|
+
NON_PROFIT = :NON_PROFIT
|
|
265
|
+
SOLE_PROPRIETOR = :SOLE_PROPRIETOR
|
|
266
|
+
GOVERNMENT = :GOVERNMENT
|
|
267
|
+
|
|
268
|
+
# @!method self.values
|
|
269
|
+
# @return [Array<Symbol>]
|
|
270
|
+
end
|
|
234
271
|
end
|
|
235
272
|
end
|
|
236
273
|
end
|