sentdm 0.4.0 → 0.7.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 +39 -0
- data/README.md +13 -9
- data/lib/sentdm/client.rb +5 -8
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/{api_response_contact.rb → api_response_of_contact.rb} +4 -4
- data/lib/sentdm/models/base_dto.rb +30 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +1 -1
- data/lib/sentdm/models/contact_list_response.rb +3 -3
- data/lib/sentdm/models/{contact.rb → contact_response.rb} +1 -1
- data/lib/sentdm/models/{mutation_request.rb → mutation_request_base.rb} +2 -2
- data/lib/sentdm/models/number_lookup_params.rb +26 -0
- data/lib/sentdm/models/number_lookup_response.rb +104 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +3 -3
- data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
- data/lib/sentdm/models/profile_create_params.rb +9 -91
- data/lib/sentdm/models/profile_delete_params.rb +1 -1
- data/lib/sentdm/models/profile_detail.rb +369 -3
- data/lib/sentdm/models/profile_update_params.rb +9 -91
- data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -5
- data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
- data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +5 -5
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +50 -0
- data/lib/sentdm/models/profiles/campaign_list_params.rb +28 -0
- data/lib/sentdm/models/profiles/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/profiles/campaign_update_params.rb +64 -0
- data/lib/sentdm/models/{brands → profiles}/messaging_use_case_us.rb +1 -1
- data/lib/sentdm/models/{brands → profiles}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +4 -4
- data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +119 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +77 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
- data/lib/sentdm/models/user_remove_params.rb +1 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
- data/lib/sentdm/models.rb +23 -8
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/numbers.rb +44 -0
- data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
- data/lib/sentdm/resources/profiles.rb +16 -11
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +26 -16
- data/rbi/sentdm/client.rbi +4 -6
- data/rbi/sentdm/models/{api_response_contact.rbi → api_response_of_contact.rbi} +6 -6
- data/rbi/sentdm/models/base_dto.rbi +49 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
- data/rbi/sentdm/models/contact_list_response.rbi +4 -4
- data/rbi/sentdm/models/{contact.rbi → contact_response.rbi} +4 -2
- data/rbi/sentdm/models/{mutation_request.rbi → mutation_request_base.rbi} +2 -2
- data/rbi/sentdm/models/number_lookup_params.rbi +46 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +166 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +2 -2
- data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
- data/rbi/sentdm/models/profile_create_params.rbi +12 -146
- data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profile_detail.rbi +562 -4
- data/rbi/sentdm/models/profile_update_params.rbi +12 -146
- data/rbi/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbi → profiles/api_response_of_tcr_campaign_with_use_cases.rbi} +7 -7
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +88 -0
- data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +5 -5
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +95 -0
- data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +84 -0
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +94 -0
- data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
- data/rbi/sentdm/models/{brands → profiles}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +6 -5
- data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +37 -29
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +183 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +99 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
- data/rbi/sentdm/models/user_remove_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
- data/rbi/sentdm/models.rbi +23 -8
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/numbers.rbi +32 -0
- data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
- data/rbi/sentdm/resources/profiles.rbi +11 -11
- data/sig/sentdm/client.rbs +2 -4
- data/sig/sentdm/models/{api_response_contact.rbs → api_response_of_contact.rbs} +6 -6
- data/sig/sentdm/models/base_dto.rbs +25 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +1 -1
- data/sig/sentdm/models/contact_list_response.rbs +7 -5
- data/sig/sentdm/models/{contact.rbs → contact_response.rbs} +2 -2
- data/sig/sentdm/models/{mutation_request.rbs → mutation_request_base.rbs} +2 -2
- data/sig/sentdm/models/number_lookup_params.rbs +30 -0
- data/sig/sentdm/models/number_lookup_response.rbs +100 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +2 -2
- data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +12 -66
- data/sig/sentdm/models/profile_delete_params.rbs +1 -1
- data/sig/sentdm/models/profile_detail.rbs +289 -4
- data/sig/sentdm/models/profile_update_params.rbs +12 -66
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
- data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +5 -5
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +53 -0
- data/sig/sentdm/models/profiles/campaign_list_params.rbs +32 -0
- data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/campaign_list_response.rbs} +7 -7
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +59 -0
- data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
- data/sig/sentdm/models/{brands → profiles}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +5 -5
- data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/user_remove_params.rbs +1 -1
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
- data/sig/sentdm/models.rbs +20 -8
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/numbers.rbs +13 -0
- data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
- data/sig/sentdm/resources/profiles.rbs +9 -7
- metadata +79 -49
- data/lib/sentdm/models/brand_data.rb +0 -274
- data/lib/sentdm/models/brand_with_kyc.rb +0 -370
- data/lib/sentdm/models/brands/base_dto.rb +0 -32
- data/lib/sentdm/resources/brands/campaigns.rb +0 -16
- data/lib/sentdm/resources/brands.rb +0 -18
- data/lib/sentdm/resources/lookup.rb +0 -14
- data/rbi/sentdm/models/brand_data.rbi +0 -389
- data/rbi/sentdm/models/brand_with_kyc.rbi +0 -516
- data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -14
- data/rbi/sentdm/resources/brands.rbi +0 -15
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/sig/sentdm/models/brand_data.rbs +0 -210
- data/sig/sentdm/models/brand_with_kyc.rbs +0 -288
- data/sig/sentdm/models/brands/base_dto.rbs +0 -27
- data/sig/sentdm/models/profile_complete_response.rbs +0 -5
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -9
- data/sig/sentdm/resources/brands.rbs +0 -9
- data/sig/sentdm/resources/lookup.rbs +0 -7
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandWithKYC < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
# Unique identifier for the brand
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute business
|
|
13
|
-
# Business details and address information
|
|
14
|
-
#
|
|
15
|
-
# @return [Sentdm::Models::BrandWithKYC::Business, nil]
|
|
16
|
-
optional :business, -> { Sentdm::BrandWithKYC::Business }, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute compliance
|
|
19
|
-
# Compliance and TCR-related information
|
|
20
|
-
#
|
|
21
|
-
# @return [Sentdm::Models::BrandWithKYC::Compliance, nil]
|
|
22
|
-
optional :compliance, -> { Sentdm::BrandWithKYC::Compliance }, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute contact
|
|
25
|
-
# Contact information for the brand
|
|
26
|
-
#
|
|
27
|
-
# @return [Sentdm::Models::BrandWithKYC::Contact, nil]
|
|
28
|
-
optional :contact, -> { Sentdm::BrandWithKYC::Contact }, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute created_at
|
|
31
|
-
# When the brand was created
|
|
32
|
-
#
|
|
33
|
-
# @return [Time, nil]
|
|
34
|
-
optional :created_at, Time
|
|
35
|
-
|
|
36
|
-
# @!attribute csp_id
|
|
37
|
-
# CSP (Campaign Service Provider) ID
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :csp_id, String, nil?: true
|
|
41
|
-
|
|
42
|
-
# @!attribute identity_status
|
|
43
|
-
# TCR brand identity verification status
|
|
44
|
-
#
|
|
45
|
-
# @return [Symbol, Sentdm::Models::BrandWithKYC::IdentityStatus, nil]
|
|
46
|
-
optional :identity_status, enum: -> { Sentdm::BrandWithKYC::IdentityStatus }, nil?: true
|
|
47
|
-
|
|
48
|
-
# @!attribute is_inherited
|
|
49
|
-
# Whether this brand is inherited from the parent organization
|
|
50
|
-
#
|
|
51
|
-
# @return [Boolean, nil]
|
|
52
|
-
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
53
|
-
|
|
54
|
-
# @!attribute status
|
|
55
|
-
# TCR brand status
|
|
56
|
-
#
|
|
57
|
-
# @return [Symbol, Sentdm::Models::BrandWithKYC::Status, nil]
|
|
58
|
-
optional :status, enum: -> { Sentdm::BrandWithKYC::Status }, nil?: true
|
|
59
|
-
|
|
60
|
-
# @!attribute submitted_at
|
|
61
|
-
# When the brand was submitted to TCR
|
|
62
|
-
#
|
|
63
|
-
# @return [Time, nil]
|
|
64
|
-
optional :submitted_at, Time, nil?: true
|
|
65
|
-
|
|
66
|
-
# @!attribute submitted_to_tcr
|
|
67
|
-
# Whether this brand has been submitted to TCR
|
|
68
|
-
#
|
|
69
|
-
# @return [Boolean, nil]
|
|
70
|
-
optional :submitted_to_tcr, Sentdm::Internal::Type::Boolean
|
|
71
|
-
|
|
72
|
-
# @!attribute tcr_brand_id
|
|
73
|
-
# TCR brand ID (populated after TCR submission)
|
|
74
|
-
#
|
|
75
|
-
# @return [String, nil]
|
|
76
|
-
optional :tcr_brand_id, String, nil?: true
|
|
77
|
-
|
|
78
|
-
# @!attribute universal_ein
|
|
79
|
-
# Universal EIN from TCR
|
|
80
|
-
#
|
|
81
|
-
# @return [String, nil]
|
|
82
|
-
optional :universal_ein, String, nil?: true
|
|
83
|
-
|
|
84
|
-
# @!attribute updated_at
|
|
85
|
-
# When the brand was last updated
|
|
86
|
-
#
|
|
87
|
-
# @return [Time, nil]
|
|
88
|
-
optional :updated_at, Time, nil?: true
|
|
89
|
-
|
|
90
|
-
# @!method initialize(id: nil, business: nil, compliance: nil, contact: nil, created_at: nil, csp_id: nil, identity_status: nil, is_inherited: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_brand_id: nil, universal_ein: nil, updated_at: nil)
|
|
91
|
-
# Brand response with nested contact, business, and compliance sections — mirrors
|
|
92
|
-
# the request structure.
|
|
93
|
-
#
|
|
94
|
-
# @param id [String] Unique identifier for the brand
|
|
95
|
-
#
|
|
96
|
-
# @param business [Sentdm::Models::BrandWithKYC::Business, nil] Business details and address information
|
|
97
|
-
#
|
|
98
|
-
# @param compliance [Sentdm::Models::BrandWithKYC::Compliance, nil] Compliance and TCR-related information
|
|
99
|
-
#
|
|
100
|
-
# @param contact [Sentdm::Models::BrandWithKYC::Contact, nil] Contact information for the brand
|
|
101
|
-
#
|
|
102
|
-
# @param created_at [Time] When the brand was created
|
|
103
|
-
#
|
|
104
|
-
# @param csp_id [String, nil] CSP (Campaign Service Provider) ID
|
|
105
|
-
#
|
|
106
|
-
# @param identity_status [Symbol, Sentdm::Models::BrandWithKYC::IdentityStatus, nil] TCR brand identity verification status
|
|
107
|
-
#
|
|
108
|
-
# @param is_inherited [Boolean] Whether this brand is inherited from the parent organization
|
|
109
|
-
#
|
|
110
|
-
# @param status [Symbol, Sentdm::Models::BrandWithKYC::Status, nil] TCR brand status
|
|
111
|
-
#
|
|
112
|
-
# @param submitted_at [Time, nil] When the brand was submitted to TCR
|
|
113
|
-
#
|
|
114
|
-
# @param submitted_to_tcr [Boolean] Whether this brand has been submitted to TCR
|
|
115
|
-
#
|
|
116
|
-
# @param tcr_brand_id [String, nil] TCR brand ID (populated after TCR submission)
|
|
117
|
-
#
|
|
118
|
-
# @param universal_ein [String, nil] Universal EIN from TCR
|
|
119
|
-
#
|
|
120
|
-
# @param updated_at [Time, nil] When the brand was last updated
|
|
121
|
-
|
|
122
|
-
# @see Sentdm::Models::BrandWithKYC#business
|
|
123
|
-
class Business < Sentdm::Internal::Type::BaseModel
|
|
124
|
-
# @!attribute city
|
|
125
|
-
# City
|
|
126
|
-
#
|
|
127
|
-
# @return [String, nil]
|
|
128
|
-
optional :city, String, nil?: true
|
|
129
|
-
|
|
130
|
-
# @!attribute country
|
|
131
|
-
# Country code (e.g., US, CA)
|
|
132
|
-
#
|
|
133
|
-
# @return [String, nil]
|
|
134
|
-
optional :country, String, nil?: true
|
|
135
|
-
|
|
136
|
-
# @!attribute country_of_registration
|
|
137
|
-
# Country where the business is registered
|
|
138
|
-
#
|
|
139
|
-
# @return [String, nil]
|
|
140
|
-
optional :country_of_registration, String, nil?: true
|
|
141
|
-
|
|
142
|
-
# @!attribute entity_type
|
|
143
|
-
# Business entity type
|
|
144
|
-
#
|
|
145
|
-
# @return [String, nil]
|
|
146
|
-
optional :entity_type, String, nil?: true
|
|
147
|
-
|
|
148
|
-
# @!attribute legal_name
|
|
149
|
-
# Legal business name
|
|
150
|
-
#
|
|
151
|
-
# @return [String, nil]
|
|
152
|
-
optional :legal_name, String, nil?: true
|
|
153
|
-
|
|
154
|
-
# @!attribute postal_code
|
|
155
|
-
# Postal/ZIP code
|
|
156
|
-
#
|
|
157
|
-
# @return [String, nil]
|
|
158
|
-
optional :postal_code, String, nil?: true
|
|
159
|
-
|
|
160
|
-
# @!attribute state
|
|
161
|
-
# State/province code
|
|
162
|
-
#
|
|
163
|
-
# @return [String, nil]
|
|
164
|
-
optional :state, String, nil?: true
|
|
165
|
-
|
|
166
|
-
# @!attribute street
|
|
167
|
-
# Street address
|
|
168
|
-
#
|
|
169
|
-
# @return [String, nil]
|
|
170
|
-
optional :street, String, nil?: true
|
|
171
|
-
|
|
172
|
-
# @!attribute tax_id
|
|
173
|
-
# Tax ID/EIN number
|
|
174
|
-
#
|
|
175
|
-
# @return [String, nil]
|
|
176
|
-
optional :tax_id, String, nil?: true
|
|
177
|
-
|
|
178
|
-
# @!attribute tax_id_type
|
|
179
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
180
|
-
#
|
|
181
|
-
# @return [String, nil]
|
|
182
|
-
optional :tax_id_type, String, nil?: true
|
|
183
|
-
|
|
184
|
-
# @!attribute url
|
|
185
|
-
# Business website URL
|
|
186
|
-
#
|
|
187
|
-
# @return [String, nil]
|
|
188
|
-
optional :url, String, nil?: true
|
|
189
|
-
|
|
190
|
-
# @!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)
|
|
191
|
-
# Business details and address information
|
|
192
|
-
#
|
|
193
|
-
# @param city [String, nil] City
|
|
194
|
-
#
|
|
195
|
-
# @param country [String, nil] Country code (e.g., US, CA)
|
|
196
|
-
#
|
|
197
|
-
# @param country_of_registration [String, nil] Country where the business is registered
|
|
198
|
-
#
|
|
199
|
-
# @param entity_type [String, nil] Business entity type
|
|
200
|
-
#
|
|
201
|
-
# @param legal_name [String, nil] Legal business name
|
|
202
|
-
#
|
|
203
|
-
# @param postal_code [String, nil] Postal/ZIP code
|
|
204
|
-
#
|
|
205
|
-
# @param state [String, nil] State/province code
|
|
206
|
-
#
|
|
207
|
-
# @param street [String, nil] Street address
|
|
208
|
-
#
|
|
209
|
-
# @param tax_id [String, nil] Tax ID/EIN number
|
|
210
|
-
#
|
|
211
|
-
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
212
|
-
#
|
|
213
|
-
# @param url [String, nil] Business website URL
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# @see Sentdm::Models::BrandWithKYC#compliance
|
|
217
|
-
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
218
|
-
# @!attribute brand_relationship
|
|
219
|
-
# Brand relationship level with TCR
|
|
220
|
-
#
|
|
221
|
-
# @return [Symbol, Sentdm::Models::TcrBrandRelationship, nil]
|
|
222
|
-
optional :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, nil?: true
|
|
223
|
-
|
|
224
|
-
# @!attribute destination_countries
|
|
225
|
-
# List of destination countries for messaging
|
|
226
|
-
#
|
|
227
|
-
# @return [Array<Sentdm::Models::DestinationCountry>, nil]
|
|
228
|
-
optional :destination_countries, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] }
|
|
229
|
-
|
|
230
|
-
# @!attribute expected_messaging_volume
|
|
231
|
-
# Expected daily messaging volume
|
|
232
|
-
#
|
|
233
|
-
# @return [String, nil]
|
|
234
|
-
optional :expected_messaging_volume, String, nil?: true
|
|
235
|
-
|
|
236
|
-
# @!attribute is_tcr_application
|
|
237
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
238
|
-
#
|
|
239
|
-
# @return [Boolean, nil]
|
|
240
|
-
optional :is_tcr_application, Sentdm::Internal::Type::Boolean
|
|
241
|
-
|
|
242
|
-
# @!attribute notes
|
|
243
|
-
# Additional notes about the business or use case
|
|
244
|
-
#
|
|
245
|
-
# @return [String, nil]
|
|
246
|
-
optional :notes, String, nil?: true
|
|
247
|
-
|
|
248
|
-
# @!attribute phone_number_prefix
|
|
249
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
250
|
-
#
|
|
251
|
-
# @return [String, nil]
|
|
252
|
-
optional :phone_number_prefix, String, nil?: true
|
|
253
|
-
|
|
254
|
-
# @!attribute primary_use_case
|
|
255
|
-
# Primary messaging use case description
|
|
256
|
-
#
|
|
257
|
-
# @return [String, nil]
|
|
258
|
-
optional :primary_use_case, String, nil?: true
|
|
259
|
-
|
|
260
|
-
# @!attribute vertical
|
|
261
|
-
# Business vertical/industry category
|
|
262
|
-
#
|
|
263
|
-
# @return [Symbol, Sentdm::Models::TcrVertical, nil]
|
|
264
|
-
optional :vertical, enum: -> { Sentdm::TcrVertical }, nil?: true
|
|
265
|
-
|
|
266
|
-
# @!method initialize(brand_relationship: nil, destination_countries: nil, expected_messaging_volume: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil, vertical: nil)
|
|
267
|
-
# Compliance and TCR-related information
|
|
268
|
-
#
|
|
269
|
-
# @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship, nil] Brand relationship level with TCR
|
|
270
|
-
#
|
|
271
|
-
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>] List of destination countries for messaging
|
|
272
|
-
#
|
|
273
|
-
# @param expected_messaging_volume [String, nil] Expected daily messaging volume
|
|
274
|
-
#
|
|
275
|
-
# @param is_tcr_application [Boolean] Whether this is a TCR (Campaign Registry) application
|
|
276
|
-
#
|
|
277
|
-
# @param notes [String, nil] Additional notes about the business or use case
|
|
278
|
-
#
|
|
279
|
-
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
280
|
-
#
|
|
281
|
-
# @param primary_use_case [String, nil] Primary messaging use case description
|
|
282
|
-
#
|
|
283
|
-
# @param vertical [Symbol, Sentdm::Models::TcrVertical, nil] Business vertical/industry category
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
# @see Sentdm::Models::BrandWithKYC#contact
|
|
287
|
-
class Contact < Sentdm::Internal::Type::BaseModel
|
|
288
|
-
# @!attribute business_name
|
|
289
|
-
# Business/brand name
|
|
290
|
-
#
|
|
291
|
-
# @return [String, nil]
|
|
292
|
-
optional :business_name, String, nil?: true
|
|
293
|
-
|
|
294
|
-
# @!attribute email
|
|
295
|
-
# Contact email address
|
|
296
|
-
#
|
|
297
|
-
# @return [String, nil]
|
|
298
|
-
optional :email, String, nil?: true
|
|
299
|
-
|
|
300
|
-
# @!attribute name
|
|
301
|
-
# Primary contact name
|
|
302
|
-
#
|
|
303
|
-
# @return [String, nil]
|
|
304
|
-
optional :name, String
|
|
305
|
-
|
|
306
|
-
# @!attribute phone
|
|
307
|
-
# Contact phone number in E.164 format
|
|
308
|
-
#
|
|
309
|
-
# @return [String, nil]
|
|
310
|
-
optional :phone, String, nil?: true
|
|
311
|
-
|
|
312
|
-
# @!attribute phone_country_code
|
|
313
|
-
# Contact phone country code (e.g., "1" for US)
|
|
314
|
-
#
|
|
315
|
-
# @return [String, nil]
|
|
316
|
-
optional :phone_country_code, String, nil?: true
|
|
317
|
-
|
|
318
|
-
# @!attribute role
|
|
319
|
-
# Contact's role in the business
|
|
320
|
-
#
|
|
321
|
-
# @return [String, nil]
|
|
322
|
-
optional :role, String, nil?: true
|
|
323
|
-
|
|
324
|
-
# @!method initialize(business_name: nil, email: nil, name: nil, phone: nil, phone_country_code: nil, role: nil)
|
|
325
|
-
# Contact information for the brand
|
|
326
|
-
#
|
|
327
|
-
# @param business_name [String, nil] Business/brand name
|
|
328
|
-
#
|
|
329
|
-
# @param email [String, nil] Contact email address
|
|
330
|
-
#
|
|
331
|
-
# @param name [String] Primary contact name
|
|
332
|
-
#
|
|
333
|
-
# @param phone [String, nil] Contact phone number in E.164 format
|
|
334
|
-
#
|
|
335
|
-
# @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
336
|
-
#
|
|
337
|
-
# @param role [String, nil] Contact's role in the business
|
|
338
|
-
end
|
|
339
|
-
|
|
340
|
-
# TCR brand identity verification status
|
|
341
|
-
#
|
|
342
|
-
# @see Sentdm::Models::BrandWithKYC#identity_status
|
|
343
|
-
module IdentityStatus
|
|
344
|
-
extend Sentdm::Internal::Type::Enum
|
|
345
|
-
|
|
346
|
-
SELF_DECLARED = :SELF_DECLARED
|
|
347
|
-
UNVERIFIED = :UNVERIFIED
|
|
348
|
-
VERIFIED = :VERIFIED
|
|
349
|
-
VETTED_VERIFIED = :VETTED_VERIFIED
|
|
350
|
-
|
|
351
|
-
# @!method self.values
|
|
352
|
-
# @return [Array<Symbol>]
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
# TCR brand status
|
|
356
|
-
#
|
|
357
|
-
# @see Sentdm::Models::BrandWithKYC#status
|
|
358
|
-
module Status
|
|
359
|
-
extend Sentdm::Internal::Type::Enum
|
|
360
|
-
|
|
361
|
-
ACTIVE = :ACTIVE
|
|
362
|
-
INACTIVE = :INACTIVE
|
|
363
|
-
SUSPENDED = :SUSPENDED
|
|
364
|
-
|
|
365
|
-
# @!method self.values
|
|
366
|
-
# @return [Array<Symbol>]
|
|
367
|
-
end
|
|
368
|
-
end
|
|
369
|
-
end
|
|
370
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Brands
|
|
6
|
-
class BaseDto < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# Unique identifier
|
|
9
|
-
#
|
|
10
|
-
# @return [String, nil]
|
|
11
|
-
optional :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute created_at
|
|
14
|
-
#
|
|
15
|
-
# @return [Time, nil]
|
|
16
|
-
optional :created_at, Time, api_name: :createdAt
|
|
17
|
-
|
|
18
|
-
# @!attribute updated_at
|
|
19
|
-
#
|
|
20
|
-
# @return [Time, nil]
|
|
21
|
-
optional :updated_at, Time, api_name: :updatedAt, nil?: true
|
|
22
|
-
|
|
23
|
-
# @!method initialize(id: nil, created_at: nil, updated_at: nil)
|
|
24
|
-
# @param id [String] Unique identifier
|
|
25
|
-
#
|
|
26
|
-
# @param created_at [Time]
|
|
27
|
-
#
|
|
28
|
-
# @param updated_at [Time, nil]
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Resources
|
|
5
|
-
class Brands
|
|
6
|
-
# @return [Sentdm::Resources::Brands::Campaigns]
|
|
7
|
-
attr_reader :campaigns
|
|
8
|
-
|
|
9
|
-
# @api private
|
|
10
|
-
#
|
|
11
|
-
# @param client [Sentdm::Client]
|
|
12
|
-
def initialize(client:)
|
|
13
|
-
@client = client
|
|
14
|
-
@campaigns = Sentdm::Resources::Brands::Campaigns.new(client: client)
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|