sentdm 0.4.0 → 0.5.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 +1 -27
- 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/{brand_data.rb → brands_brand_data.rb} +17 -17
- 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 +28 -7
- 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}/tcr_campaign_with_use_cases.rb +15 -15
- data/lib/sentdm/models/template_definition.rb +255 -15
- 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 +14 -26
- 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 +22 -22
- 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/{brand_data.rbi → brands_brand_data.rbi} +44 -27
- 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 +51 -16
- 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}/tcr_campaign_with_use_cases.rbi +37 -29
- data/rbi/sentdm/models/template_definition.rbi +405 -74
- 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 +14 -26
- 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/{brand_data.rbs → brands_brand_data.rbs} +19 -19
- 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 +27 -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}/tcr_campaign_with_use_cases.rbs +29 -29
- data/sig/sentdm/models/template_definition.rbs +233 -20
- 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 +14 -20
- 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 +67 -67
- data/lib/sentdm/models/brand_with_kyc.rb +0 -370
- data/lib/sentdm/models/brands/base_dto.rb +0 -32
- data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -30
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- 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_with_kyc.rbi +0 -516
- data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
- data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -52
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -79
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -60
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -62
- 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_with_kyc.rbs +0 -288
- data/sig/sentdm/models/brands/base_dto.rbs +0 -27
- data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profile_complete_response.rbs +0 -5
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -38
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -32
- 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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
module Profiles
|
|
6
|
+
class CampaignUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Sentdm::Profiles::CampaignUpdateParams,
|
|
14
|
+
Sentdm::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :profile_id
|
|
20
|
+
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :campaign_id
|
|
23
|
+
|
|
24
|
+
# Campaign data
|
|
25
|
+
sig { returns(Sentdm::Profiles::CampaignData) }
|
|
26
|
+
attr_reader :campaign
|
|
27
|
+
|
|
28
|
+
sig { params(campaign: Sentdm::Profiles::CampaignData::OrHash).void }
|
|
29
|
+
attr_writer :campaign
|
|
30
|
+
|
|
31
|
+
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
32
|
+
# for testing integrations without actual execution
|
|
33
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
+
attr_reader :sandbox
|
|
35
|
+
|
|
36
|
+
sig { params(sandbox: T::Boolean).void }
|
|
37
|
+
attr_writer :sandbox
|
|
38
|
+
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_reader :idempotency_key
|
|
41
|
+
|
|
42
|
+
sig { params(idempotency_key: String).void }
|
|
43
|
+
attr_writer :idempotency_key
|
|
44
|
+
|
|
45
|
+
sig { returns(T.nilable(String)) }
|
|
46
|
+
attr_reader :x_profile_id
|
|
47
|
+
|
|
48
|
+
sig { params(x_profile_id: String).void }
|
|
49
|
+
attr_writer :x_profile_id
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
profile_id: String,
|
|
54
|
+
campaign_id: String,
|
|
55
|
+
campaign: Sentdm::Profiles::CampaignData::OrHash,
|
|
56
|
+
sandbox: T::Boolean,
|
|
57
|
+
idempotency_key: String,
|
|
58
|
+
x_profile_id: String,
|
|
59
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
profile_id:,
|
|
64
|
+
campaign_id:,
|
|
65
|
+
# Campaign data
|
|
66
|
+
campaign:,
|
|
67
|
+
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
68
|
+
# for testing integrations without actual execution
|
|
69
|
+
sandbox: nil,
|
|
70
|
+
idempotency_key: nil,
|
|
71
|
+
x_profile_id: nil,
|
|
72
|
+
request_options: {}
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
override.returns(
|
|
78
|
+
{
|
|
79
|
+
profile_id: String,
|
|
80
|
+
campaign_id: String,
|
|
81
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
82
|
+
sandbox: T::Boolean,
|
|
83
|
+
idempotency_key: String,
|
|
84
|
+
x_profile_id: String,
|
|
85
|
+
request_options: Sentdm::RequestOptions
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
def to_hash
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -2,63 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
5
|
+
module Profiles
|
|
6
6
|
module MessagingUseCaseUs
|
|
7
7
|
extend Sentdm::Internal::Type::Enum
|
|
8
8
|
|
|
9
9
|
TaggedSymbol =
|
|
10
|
-
T.type_alias { T.all(Symbol, Sentdm::
|
|
10
|
+
T.type_alias { T.all(Symbol, Sentdm::Profiles::MessagingUseCaseUs) }
|
|
11
11
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
12
|
|
|
13
13
|
MARKETING =
|
|
14
|
-
T.let(:MARKETING, Sentdm::
|
|
14
|
+
T.let(:MARKETING, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
15
15
|
ACCOUNT_NOTIFICATION =
|
|
16
16
|
T.let(
|
|
17
17
|
:ACCOUNT_NOTIFICATION,
|
|
18
|
-
Sentdm::
|
|
18
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
19
19
|
)
|
|
20
20
|
CUSTOMER_CARE =
|
|
21
21
|
T.let(
|
|
22
22
|
:CUSTOMER_CARE,
|
|
23
|
-
Sentdm::
|
|
23
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
24
24
|
)
|
|
25
25
|
FRAUD_ALERT =
|
|
26
|
-
T.let(
|
|
26
|
+
T.let(
|
|
27
|
+
:FRAUD_ALERT,
|
|
28
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
29
|
+
)
|
|
27
30
|
TWO_FA =
|
|
28
|
-
T.let(:TWO_FA, Sentdm::
|
|
31
|
+
T.let(:TWO_FA, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
29
32
|
DELIVERY_NOTIFICATION =
|
|
30
33
|
T.let(
|
|
31
34
|
:DELIVERY_NOTIFICATION,
|
|
32
|
-
Sentdm::
|
|
35
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
33
36
|
)
|
|
34
37
|
SECURITY_ALERT =
|
|
35
38
|
T.let(
|
|
36
39
|
:SECURITY_ALERT,
|
|
37
|
-
Sentdm::
|
|
40
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
38
41
|
)
|
|
39
|
-
M2_M = T.let(:M2M, Sentdm::
|
|
40
|
-
MIXED =
|
|
42
|
+
M2_M = T.let(:M2M, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
43
|
+
MIXED =
|
|
44
|
+
T.let(:MIXED, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
41
45
|
HIGHER_EDUCATION =
|
|
42
46
|
T.let(
|
|
43
47
|
:HIGHER_EDUCATION,
|
|
44
|
-
Sentdm::
|
|
48
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
45
49
|
)
|
|
46
50
|
POLLING_VOTING =
|
|
47
51
|
T.let(
|
|
48
52
|
:POLLING_VOTING,
|
|
49
|
-
Sentdm::
|
|
53
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
50
54
|
)
|
|
51
55
|
PUBLIC_SERVICE_ANNOUNCEMENT =
|
|
52
56
|
T.let(
|
|
53
57
|
:PUBLIC_SERVICE_ANNOUNCEMENT,
|
|
54
|
-
Sentdm::
|
|
58
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol
|
|
55
59
|
)
|
|
56
60
|
LOW_VOLUME =
|
|
57
|
-
T.let(:LOW_VOLUME, Sentdm::
|
|
61
|
+
T.let(:LOW_VOLUME, Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
58
62
|
|
|
59
63
|
sig do
|
|
60
64
|
override.returns(
|
|
61
|
-
T::Array[Sentdm::
|
|
65
|
+
T::Array[Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol]
|
|
62
66
|
)
|
|
63
67
|
end
|
|
64
68
|
def self.values
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
class TcrCampaignWithUseCases < Sentdm::Models::
|
|
5
|
+
module Profiles
|
|
6
|
+
class TcrCampaignWithUseCases < Sentdm::Models::BaseDto
|
|
7
7
|
OrHash =
|
|
8
8
|
T.type_alias do
|
|
9
9
|
T.any(
|
|
10
|
-
Sentdm::
|
|
10
|
+
Sentdm::Profiles::TcrCampaignWithUseCases,
|
|
11
11
|
Sentdm::Internal::AnyHash
|
|
12
12
|
)
|
|
13
13
|
end
|
|
@@ -75,7 +75,7 @@ module Sentdm
|
|
|
75
75
|
sig do
|
|
76
76
|
returns(
|
|
77
77
|
T.nilable(
|
|
78
|
-
Sentdm::
|
|
78
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
79
79
|
)
|
|
80
80
|
)
|
|
81
81
|
end
|
|
@@ -83,7 +83,9 @@ module Sentdm
|
|
|
83
83
|
|
|
84
84
|
sig do
|
|
85
85
|
returns(
|
|
86
|
-
T.nilable(
|
|
86
|
+
T.nilable(
|
|
87
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
88
|
+
)
|
|
87
89
|
)
|
|
88
90
|
end
|
|
89
91
|
attr_accessor :status
|
|
@@ -121,7 +123,7 @@ module Sentdm
|
|
|
121
123
|
sig do
|
|
122
124
|
returns(
|
|
123
125
|
T.nilable(
|
|
124
|
-
T::Array[Sentdm::
|
|
126
|
+
T::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
125
127
|
)
|
|
126
128
|
)
|
|
127
129
|
end
|
|
@@ -130,7 +132,9 @@ module Sentdm
|
|
|
130
132
|
sig do
|
|
131
133
|
params(
|
|
132
134
|
use_cases:
|
|
133
|
-
T::Array[
|
|
135
|
+
T::Array[
|
|
136
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase::OrHash
|
|
137
|
+
]
|
|
134
138
|
).void
|
|
135
139
|
end
|
|
136
140
|
attr_writer :use_cases
|
|
@@ -156,11 +160,11 @@ module Sentdm
|
|
|
156
160
|
reseller_id: T.nilable(String),
|
|
157
161
|
sharing_status:
|
|
158
162
|
T.nilable(
|
|
159
|
-
Sentdm::
|
|
163
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::OrSymbol
|
|
160
164
|
),
|
|
161
165
|
status:
|
|
162
166
|
T.nilable(
|
|
163
|
-
Sentdm::
|
|
167
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::OrSymbol
|
|
164
168
|
),
|
|
165
169
|
submitted_at: T.nilable(Time),
|
|
166
170
|
submitted_to_tcr: T::Boolean,
|
|
@@ -171,7 +175,9 @@ module Sentdm
|
|
|
171
175
|
type: String,
|
|
172
176
|
upstream_cnp_id: T.nilable(String),
|
|
173
177
|
use_cases:
|
|
174
|
-
T::Array[
|
|
178
|
+
T::Array[
|
|
179
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase::OrHash
|
|
180
|
+
]
|
|
175
181
|
).returns(T.attached_class)
|
|
176
182
|
end
|
|
177
183
|
def self.new(
|
|
@@ -228,11 +234,11 @@ module Sentdm
|
|
|
228
234
|
reseller_id: T.nilable(String),
|
|
229
235
|
sharing_status:
|
|
230
236
|
T.nilable(
|
|
231
|
-
Sentdm::
|
|
237
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
232
238
|
),
|
|
233
239
|
status:
|
|
234
240
|
T.nilable(
|
|
235
|
-
Sentdm::
|
|
241
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
236
242
|
),
|
|
237
243
|
submitted_at: T.nilable(Time),
|
|
238
244
|
submitted_to_tcr: T::Boolean,
|
|
@@ -243,7 +249,7 @@ module Sentdm
|
|
|
243
249
|
type: String,
|
|
244
250
|
upstream_cnp_id: T.nilable(String),
|
|
245
251
|
use_cases:
|
|
246
|
-
T::Array[Sentdm::
|
|
252
|
+
T::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
247
253
|
}
|
|
248
254
|
)
|
|
249
255
|
end
|
|
@@ -257,7 +263,7 @@ module Sentdm
|
|
|
257
263
|
T.type_alias do
|
|
258
264
|
T.all(
|
|
259
265
|
Symbol,
|
|
260
|
-
Sentdm::
|
|
266
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus
|
|
261
267
|
)
|
|
262
268
|
end
|
|
263
269
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -265,23 +271,23 @@ module Sentdm
|
|
|
265
271
|
PENDING =
|
|
266
272
|
T.let(
|
|
267
273
|
:PENDING,
|
|
268
|
-
Sentdm::
|
|
274
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
269
275
|
)
|
|
270
276
|
ACCEPTED =
|
|
271
277
|
T.let(
|
|
272
278
|
:ACCEPTED,
|
|
273
|
-
Sentdm::
|
|
279
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
274
280
|
)
|
|
275
281
|
DECLINED =
|
|
276
282
|
T.let(
|
|
277
283
|
:DECLINED,
|
|
278
|
-
Sentdm::
|
|
284
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
279
285
|
)
|
|
280
286
|
|
|
281
287
|
sig do
|
|
282
288
|
override.returns(
|
|
283
289
|
T::Array[
|
|
284
|
-
Sentdm::
|
|
290
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
285
291
|
]
|
|
286
292
|
)
|
|
287
293
|
end
|
|
@@ -294,30 +300,30 @@ module Sentdm
|
|
|
294
300
|
|
|
295
301
|
TaggedSymbol =
|
|
296
302
|
T.type_alias do
|
|
297
|
-
T.all(Symbol, Sentdm::
|
|
303
|
+
T.all(Symbol, Sentdm::Profiles::TcrCampaignWithUseCases::Status)
|
|
298
304
|
end
|
|
299
305
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
300
306
|
|
|
301
307
|
SENT_CREATED =
|
|
302
308
|
T.let(
|
|
303
309
|
:SENT_CREATED,
|
|
304
|
-
Sentdm::
|
|
310
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
305
311
|
)
|
|
306
312
|
ACTIVE =
|
|
307
313
|
T.let(
|
|
308
314
|
:ACTIVE,
|
|
309
|
-
Sentdm::
|
|
315
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
310
316
|
)
|
|
311
317
|
EXPIRED =
|
|
312
318
|
T.let(
|
|
313
319
|
:EXPIRED,
|
|
314
|
-
Sentdm::
|
|
320
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
315
321
|
)
|
|
316
322
|
|
|
317
323
|
sig do
|
|
318
324
|
override.returns(
|
|
319
325
|
T::Array[
|
|
320
|
-
Sentdm::
|
|
326
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
321
327
|
]
|
|
322
328
|
)
|
|
323
329
|
end
|
|
@@ -325,11 +331,11 @@ module Sentdm
|
|
|
325
331
|
end
|
|
326
332
|
end
|
|
327
333
|
|
|
328
|
-
class UseCase < Sentdm::Models::
|
|
334
|
+
class UseCase < Sentdm::Models::BaseDto
|
|
329
335
|
OrHash =
|
|
330
336
|
T.type_alias do
|
|
331
337
|
T.any(
|
|
332
|
-
Sentdm::
|
|
338
|
+
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase,
|
|
333
339
|
Sentdm::Internal::AnyHash
|
|
334
340
|
)
|
|
335
341
|
end
|
|
@@ -347,14 +353,16 @@ module Sentdm
|
|
|
347
353
|
attr_writer :customer_id
|
|
348
354
|
|
|
349
355
|
sig do
|
|
350
|
-
returns(
|
|
356
|
+
returns(
|
|
357
|
+
T.nilable(Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
358
|
+
)
|
|
351
359
|
end
|
|
352
360
|
attr_reader :messaging_use_case_us
|
|
353
361
|
|
|
354
362
|
sig do
|
|
355
363
|
params(
|
|
356
364
|
messaging_use_case_us:
|
|
357
|
-
Sentdm::
|
|
365
|
+
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol
|
|
358
366
|
).void
|
|
359
367
|
end
|
|
360
368
|
attr_writer :messaging_use_case_us
|
|
@@ -370,7 +378,7 @@ module Sentdm
|
|
|
370
378
|
campaign_id: String,
|
|
371
379
|
customer_id: String,
|
|
372
380
|
messaging_use_case_us:
|
|
373
|
-
Sentdm::
|
|
381
|
+
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol,
|
|
374
382
|
sample_messages: T::Array[String]
|
|
375
383
|
).returns(T.attached_class)
|
|
376
384
|
end
|
|
@@ -388,7 +396,7 @@ module Sentdm
|
|
|
388
396
|
campaign_id: String,
|
|
389
397
|
customer_id: String,
|
|
390
398
|
messaging_use_case_us:
|
|
391
|
-
Sentdm::
|
|
399
|
+
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol,
|
|
392
400
|
sample_messages: T::Array[String]
|
|
393
401
|
}
|
|
394
402
|
)
|