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,389 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandData < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias { T.any(Sentdm::BrandData, Sentdm::Internal::AnyHash) }
|
|
8
|
-
|
|
9
|
-
# Compliance and TCR-related information
|
|
10
|
-
sig { returns(Sentdm::BrandData::Compliance) }
|
|
11
|
-
attr_reader :compliance
|
|
12
|
-
|
|
13
|
-
sig { params(compliance: Sentdm::BrandData::Compliance::OrHash).void }
|
|
14
|
-
attr_writer :compliance
|
|
15
|
-
|
|
16
|
-
# Contact information for the brand
|
|
17
|
-
sig { returns(Sentdm::BrandData::Contact) }
|
|
18
|
-
attr_reader :contact
|
|
19
|
-
|
|
20
|
-
sig { params(contact: Sentdm::BrandData::Contact::OrHash).void }
|
|
21
|
-
attr_writer :contact
|
|
22
|
-
|
|
23
|
-
# Business details and address information
|
|
24
|
-
sig { returns(T.nilable(Sentdm::BrandData::Business)) }
|
|
25
|
-
attr_reader :business
|
|
26
|
-
|
|
27
|
-
sig do
|
|
28
|
-
params(business: T.nilable(Sentdm::BrandData::Business::OrHash)).void
|
|
29
|
-
end
|
|
30
|
-
attr_writer :business
|
|
31
|
-
|
|
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
|
|
61
|
-
|
|
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
|
|
67
|
-
|
|
68
|
-
# Brand relationship level with TCR (required for TCR)
|
|
69
|
-
sig { returns(Sentdm::TcrBrandRelationship::OrSymbol) }
|
|
70
|
-
attr_accessor :brand_relationship
|
|
71
|
-
|
|
72
|
-
# Business vertical/industry category (required for TCR)
|
|
73
|
-
sig { returns(Sentdm::TcrVertical::OrSymbol) }
|
|
74
|
-
attr_accessor :vertical
|
|
75
|
-
|
|
76
|
-
# List of destination countries for messaging
|
|
77
|
-
sig { returns(T.nilable(T::Array[Sentdm::DestinationCountry])) }
|
|
78
|
-
attr_accessor :destination_countries
|
|
79
|
-
|
|
80
|
-
# Expected daily messaging volume
|
|
81
|
-
sig { returns(T.nilable(String)) }
|
|
82
|
-
attr_accessor :expected_messaging_volume
|
|
83
|
-
|
|
84
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
85
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
86
|
-
attr_accessor :is_tcr_application
|
|
87
|
-
|
|
88
|
-
# Additional notes about the business or use case
|
|
89
|
-
sig { returns(T.nilable(String)) }
|
|
90
|
-
attr_accessor :notes
|
|
91
|
-
|
|
92
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
93
|
-
sig { returns(T.nilable(String)) }
|
|
94
|
-
attr_accessor :phone_number_prefix
|
|
95
|
-
|
|
96
|
-
# Primary messaging use case description
|
|
97
|
-
sig { returns(T.nilable(String)) }
|
|
98
|
-
attr_accessor :primary_use_case
|
|
99
|
-
|
|
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
|
|
133
|
-
|
|
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
|
|
152
|
-
|
|
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
|
|
158
|
-
|
|
159
|
-
# Primary contact name (required)
|
|
160
|
-
sig { returns(String) }
|
|
161
|
-
attr_accessor :name
|
|
162
|
-
|
|
163
|
-
# Business/brand name
|
|
164
|
-
sig { returns(T.nilable(String)) }
|
|
165
|
-
attr_accessor :business_name
|
|
166
|
-
|
|
167
|
-
# Contact email address
|
|
168
|
-
sig { returns(T.nilable(String)) }
|
|
169
|
-
attr_accessor :email
|
|
170
|
-
|
|
171
|
-
# Contact phone number in E.164 format
|
|
172
|
-
sig { returns(T.nilable(String)) }
|
|
173
|
-
attr_accessor :phone
|
|
174
|
-
|
|
175
|
-
# Contact phone country code (e.g., "1" for US)
|
|
176
|
-
sig { returns(T.nilable(String)) }
|
|
177
|
-
attr_accessor :phone_country_code
|
|
178
|
-
|
|
179
|
-
# Contact's role in the business
|
|
180
|
-
sig { returns(T.nilable(String)) }
|
|
181
|
-
attr_accessor :role
|
|
182
|
-
|
|
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
|
|
209
|
-
|
|
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
|
|
224
|
-
end
|
|
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
|
-
|
|
232
|
-
# City
|
|
233
|
-
sig { returns(T.nilable(String)) }
|
|
234
|
-
attr_accessor :city
|
|
235
|
-
|
|
236
|
-
# Country code (e.g., US, CA)
|
|
237
|
-
sig { returns(T.nilable(String)) }
|
|
238
|
-
attr_accessor :country
|
|
239
|
-
|
|
240
|
-
# Country where the business is registered
|
|
241
|
-
sig { returns(T.nilable(String)) }
|
|
242
|
-
attr_accessor :country_of_registration
|
|
243
|
-
|
|
244
|
-
# Business entity type
|
|
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
|
-
|
|
254
|
-
# Postal/ZIP code
|
|
255
|
-
sig { returns(T.nilable(String)) }
|
|
256
|
-
attr_accessor :postal_code
|
|
257
|
-
|
|
258
|
-
# State/province code
|
|
259
|
-
sig { returns(T.nilable(String)) }
|
|
260
|
-
attr_accessor :state
|
|
261
|
-
|
|
262
|
-
# Street address
|
|
263
|
-
sig { returns(T.nilable(String)) }
|
|
264
|
-
attr_accessor :street
|
|
265
|
-
|
|
266
|
-
# Tax ID/EIN number
|
|
267
|
-
sig { returns(T.nilable(String)) }
|
|
268
|
-
attr_accessor :tax_id
|
|
269
|
-
|
|
270
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
271
|
-
sig { returns(T.nilable(String)) }
|
|
272
|
-
attr_accessor :tax_id_type
|
|
273
|
-
|
|
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(
|
|
281
|
-
city: T.nilable(String),
|
|
282
|
-
country: T.nilable(String),
|
|
283
|
-
country_of_registration: T.nilable(String),
|
|
284
|
-
entity_type:
|
|
285
|
-
T.nilable(Sentdm::BrandData::Business::EntityType::OrSymbol),
|
|
286
|
-
legal_name: T.nilable(String),
|
|
287
|
-
postal_code: T.nilable(String),
|
|
288
|
-
state: T.nilable(String),
|
|
289
|
-
street: T.nilable(String),
|
|
290
|
-
tax_id: T.nilable(String),
|
|
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
|
|
318
|
-
)
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
sig do
|
|
322
|
-
override.returns(
|
|
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
|
-
}
|
|
337
|
-
)
|
|
338
|
-
end
|
|
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
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
end
|
|
388
|
-
end
|
|
389
|
-
end
|