sentdm 0.5.0 → 0.8.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 +41 -0
- data/README.md +31 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_response_of_contact.rb +9 -6
- data/lib/sentdm/models/api_response_of_profile_detail.rb +6 -6
- data/lib/sentdm/models/api_response_of_user.rb +6 -6
- data/lib/sentdm/models/api_response_template.rb +6 -6
- data/lib/sentdm/models/api_response_webhook.rb +4 -4
- data/lib/sentdm/models/brands_brand_data.rb +16 -252
- data/lib/sentdm/models/contact_delete_params.rb +1 -1
- data/lib/sentdm/models/contact_list_response.rb +9 -9
- data/lib/sentdm/models/me_retrieve_response.rb +35 -21
- data/lib/sentdm/models/message_retrieve_activities_response.rb +7 -7
- data/lib/sentdm/models/message_retrieve_status_response.rb +7 -7
- data/lib/sentdm/models/message_send_params.rb +5 -3
- data/lib/sentdm/models/message_send_response.rb +7 -7
- data/lib/sentdm/models/{mutation_request_base.rb → mutation_request.rb} +2 -2
- data/lib/sentdm/models/number_lookup_response.rb +4 -4
- data/lib/sentdm/models/pagination_meta.rb +3 -3
- data/lib/sentdm/models/{profile_complete_setup_params.rb → profile_complete_params.rb} +3 -3
- data/lib/sentdm/models/{profile_complete_setup_response.rb → profile_complete_response.rb} +1 -1
- data/lib/sentdm/models/profile_create_params.rb +20 -23
- data/lib/sentdm/models/profile_delete_params.rb +1 -1
- data/lib/sentdm/models/profile_detail.rb +12 -22
- data/lib/sentdm/models/profile_list_response.rb +7 -7
- data/lib/sentdm/models/profile_update_params.rb +9 -13
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +4 -4
- data/lib/sentdm/models/profiles/base_dto.rb +32 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +2 -2
- data/lib/sentdm/models/profiles/campaign_data.rb +5 -26
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +1 -1
- data/lib/sentdm/models/profiles/campaign_list_response.rb +4 -4
- data/lib/sentdm/models/profiles/campaign_update_params.rb +2 -2
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +2 -2
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +40 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -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/template_create_params.rb +3 -2
- data/lib/sentdm/models/template_definition.rb +19 -263
- data/lib/sentdm/models/template_list_response.rb +9 -9
- data/lib/sentdm/models/template_update_params.rb +3 -2
- data/lib/sentdm/models/user_list_response.rb +7 -7
- data/lib/sentdm/models/user_remove_params.rb +1 -1
- data/lib/sentdm/models/webhook_list_event_types_response.rb +4 -4
- data/lib/sentdm/models/webhook_list_events_response.rb +4 -4
- data/lib/sentdm/models/webhook_list_response.rb +4 -4
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +4 -4
- data/lib/sentdm/models/webhook_test_response.rb +4 -4
- data/lib/sentdm/models.rb +29 -4
- data/lib/sentdm/resources/messages.rb +1 -1
- data/lib/sentdm/resources/profiles/campaigns.rb +2 -2
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +2 -2
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +14 -4
- data/rbi/sentdm/models/api_response_of_contact.rbi +6 -6
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +6 -6
- data/rbi/sentdm/models/api_response_of_user.rbi +6 -6
- data/rbi/sentdm/models/api_response_template.rbi +6 -6
- data/rbi/sentdm/models/api_response_webhook.rbi +4 -4
- data/rbi/sentdm/models/brands_brand_data.rbi +53 -355
- data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
- data/rbi/sentdm/models/contact_list_response.rbi +9 -9
- data/rbi/sentdm/models/me_retrieve_response.rbi +33 -21
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +7 -7
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +7 -7
- data/rbi/sentdm/models/message_send_params.rbi +6 -3
- data/rbi/sentdm/models/message_send_response.rbi +7 -7
- data/rbi/sentdm/models/{mutation_request_base.rbi → mutation_request.rbi} +2 -2
- data/rbi/sentdm/models/number_lookup_response.rbi +4 -4
- data/rbi/sentdm/models/pagination_meta.rbi +3 -3
- data/rbi/sentdm/models/{profile_complete_setup_params.rbi → profile_complete_params.rbi} +2 -2
- data/rbi/sentdm/models/{profile_complete_setup_response.rbi → profile_complete_response.rbi} +1 -1
- data/rbi/sentdm/models/profile_create_params.rbi +27 -33
- data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profile_detail.rbi +9 -22
- data/rbi/sentdm/models/profile_list_response.rbi +7 -7
- data/rbi/sentdm/models/profile_update_params.rbi +12 -20
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +4 -4
- data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +2 -2
- data/rbi/sentdm/models/profiles/campaign_data.rbi +14 -49
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +4 -4
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +2 -2
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +2 -2
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +76 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +60 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -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/template_create_params.rbi +4 -2
- data/rbi/sentdm/models/template_definition.rbi +82 -415
- data/rbi/sentdm/models/template_list_response.rbi +9 -9
- data/rbi/sentdm/models/template_update_params.rbi +4 -2
- data/rbi/sentdm/models/user_list_response.rbi +7 -7
- data/rbi/sentdm/models/user_remove_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +4 -4
- data/rbi/sentdm/models/webhook_list_events_response.rbi +4 -4
- data/rbi/sentdm/models/webhook_list_response.rbi +4 -4
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +4 -4
- data/rbi/sentdm/models/webhook_test_response.rbi +4 -4
- data/rbi/sentdm/models.rbi +29 -4
- data/rbi/sentdm/resources/messages.rbi +2 -1
- data/rbi/sentdm/resources/profiles/campaigns.rbi +2 -2
- data/rbi/sentdm/resources/profiles.rbi +20 -26
- data/rbi/sentdm/resources/templates.rbi +4 -2
- data/sig/sentdm/models/brands_brand_data.rbs +12 -192
- data/sig/sentdm/models/contact_delete_params.rbs +1 -1
- data/sig/sentdm/models/{mutation_request_base.rbs → mutation_request.rbs} +2 -2
- data/sig/sentdm/models/{profile_complete_setup_params.rbs → profile_complete_params.rbs} +2 -2
- data/sig/sentdm/models/profile_complete_response.rbs +5 -0
- data/sig/sentdm/models/profile_delete_params.rbs +1 -1
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_data.rbs +4 -26
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +1 -1
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +2 -2
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +32 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -0
- 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/template_definition.rbs +20 -233
- 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 -4
- data/sig/sentdm/resources/profiles.rbs +1 -1
- metadata +44 -14
- data/lib/sentdm/models/base_dto.rb +0 -30
- data/rbi/sentdm/models/base_dto.rbi +0 -49
- data/sig/sentdm/models/base_dto.rbs +0 -25
- data/sig/sentdm/models/profile_complete_setup_response.rbs +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type profile_complete_params =
|
|
4
4
|
{
|
|
5
5
|
profile_id: String,
|
|
6
6
|
web_hook_url: String,
|
|
@@ -10,7 +10,7 @@ module Sentdm
|
|
|
10
10
|
}
|
|
11
11
|
& Sentdm::Internal::Type::request_parameters
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class ProfileCompleteParams < Sentdm::Internal::Type::BaseModel
|
|
14
14
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
15
15
|
include Sentdm::Internal::Type::RequestParameters
|
|
16
16
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type base_dto = { id: String, created_at: Time, updated_at: Time? }
|
|
5
|
+
|
|
6
|
+
class BaseDto < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_reader id: String?
|
|
8
|
+
|
|
9
|
+
def id=: (String) -> String
|
|
10
|
+
|
|
11
|
+
attr_reader created_at: Time?
|
|
12
|
+
|
|
13
|
+
def created_at=: (Time) -> Time
|
|
14
|
+
|
|
15
|
+
attr_accessor updated_at: Time?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
?id: String,
|
|
19
|
+
?created_at: Time,
|
|
20
|
+
?updated_at: Time?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> { id: String, created_at: Time, updated_at: Time? }
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -6,7 +6,7 @@ module Sentdm
|
|
|
6
6
|
description: String,
|
|
7
7
|
name: String,
|
|
8
8
|
type: String,
|
|
9
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
9
|
+
use_cases: ::Array[Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
10
10
|
help_keywords: String?,
|
|
11
11
|
help_message: String?,
|
|
12
12
|
message_flow: String?,
|
|
@@ -25,7 +25,7 @@ module Sentdm
|
|
|
25
25
|
|
|
26
26
|
attr_accessor type: String
|
|
27
27
|
|
|
28
|
-
attr_accessor use_cases: ::Array[Sentdm::Profiles::
|
|
28
|
+
attr_accessor use_cases: ::Array[Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData]
|
|
29
29
|
|
|
30
30
|
attr_accessor help_keywords: String?
|
|
31
31
|
|
|
@@ -49,7 +49,7 @@ module Sentdm
|
|
|
49
49
|
description: String,
|
|
50
50
|
name: String,
|
|
51
51
|
type: String,
|
|
52
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
52
|
+
use_cases: ::Array[Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
53
53
|
?help_keywords: String?,
|
|
54
54
|
?help_message: String?,
|
|
55
55
|
?message_flow: String?,
|
|
@@ -65,7 +65,7 @@ module Sentdm
|
|
|
65
65
|
description: String,
|
|
66
66
|
name: String,
|
|
67
67
|
type: String,
|
|
68
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
68
|
+
use_cases: ::Array[Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
69
69
|
help_keywords: String?,
|
|
70
70
|
help_message: String?,
|
|
71
71
|
message_flow: String?,
|
|
@@ -76,28 +76,6 @@ module Sentdm
|
|
|
76
76
|
privacy_policy_link: String?,
|
|
77
77
|
terms_and_conditions_link: String?
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
type use_case =
|
|
81
|
-
{
|
|
82
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
83
|
-
sample_messages: ::Array[String]
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
class UseCase < Sentdm::Internal::Type::BaseModel
|
|
87
|
-
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
88
|
-
|
|
89
|
-
attr_accessor sample_messages: ::Array[String]
|
|
90
|
-
|
|
91
|
-
def initialize: (
|
|
92
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
93
|
-
sample_messages: ::Array[String]
|
|
94
|
-
) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> {
|
|
97
|
-
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
98
|
-
sample_messages: ::Array[String]
|
|
99
|
-
}
|
|
100
|
-
end
|
|
101
79
|
end
|
|
102
80
|
end
|
|
103
81
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data =
|
|
5
|
+
{
|
|
6
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
7
|
+
sample_messages: ::Array[String]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
12
|
+
|
|
13
|
+
attr_accessor sample_messages: ::Array[String]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
17
|
+
sample_messages: ::Array[String]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
22
|
+
sample_messages: ::Array[String]
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -33,7 +33,7 @@ module Sentdm
|
|
|
33
33
|
use_cases: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
class TcrCampaignWithUseCases < Sentdm::Models::BaseDto
|
|
36
|
+
class TcrCampaignWithUseCases < Sentdm::Models::Profiles::BaseDto
|
|
37
37
|
def billed_date: -> Time?
|
|
38
38
|
|
|
39
39
|
def billed_date=: (Time? _) -> Time?
|
|
@@ -246,7 +246,7 @@ module Sentdm
|
|
|
246
246
|
sample_messages: ::Array[String]
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
class UseCase < Sentdm::Models::BaseDto
|
|
249
|
+
class UseCase < Sentdm::Models::Profiles::BaseDto
|
|
250
250
|
def campaign_id: -> String?
|
|
251
251
|
|
|
252
252
|
def campaign_id=: (String _) -> String
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_authentication_config =
|
|
4
|
+
{ add_security_recommendation: bool, code_expiration_minutes: Integer? }
|
|
5
|
+
|
|
6
|
+
class SentDmServicesCommonContractsPocOsAuthenticationConfig < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_reader add_security_recommendation: bool?
|
|
8
|
+
|
|
9
|
+
def add_security_recommendation=: (bool) -> bool
|
|
10
|
+
|
|
11
|
+
attr_accessor code_expiration_minutes: Integer?
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?add_security_recommendation: bool,
|
|
15
|
+
?code_expiration_minutes: Integer?
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
add_security_recommendation: bool,
|
|
20
|
+
code_expiration_minutes: Integer?
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_template_body =
|
|
4
|
+
{
|
|
5
|
+
multi_channel: Sentdm::TemplateBodyContent?,
|
|
6
|
+
sms: Sentdm::TemplateBodyContent?,
|
|
7
|
+
whatsapp: Sentdm::TemplateBodyContent?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesCommonContractsPocOsTemplateBody < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor multi_channel: Sentdm::TemplateBodyContent?
|
|
12
|
+
|
|
13
|
+
attr_accessor sms: Sentdm::TemplateBodyContent?
|
|
14
|
+
|
|
15
|
+
attr_accessor whatsapp: Sentdm::TemplateBodyContent?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
?multi_channel: Sentdm::TemplateBodyContent?,
|
|
19
|
+
?sms: Sentdm::TemplateBodyContent?,
|
|
20
|
+
?whatsapp: Sentdm::TemplateBodyContent?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
multi_channel: Sentdm::TemplateBodyContent?,
|
|
25
|
+
sms: Sentdm::TemplateBodyContent?,
|
|
26
|
+
whatsapp: Sentdm::TemplateBodyContent?
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_template_button =
|
|
4
|
+
{
|
|
5
|
+
id: Integer,
|
|
6
|
+
props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
7
|
+
type: String
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_reader id: Integer?
|
|
12
|
+
|
|
13
|
+
def id=: (Integer) -> Integer
|
|
14
|
+
|
|
15
|
+
attr_reader props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps?
|
|
16
|
+
|
|
17
|
+
def props=: (
|
|
18
|
+
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
19
|
+
) -> Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
20
|
+
|
|
21
|
+
attr_reader type: String?
|
|
22
|
+
|
|
23
|
+
def type=: (String) -> String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?id: Integer,
|
|
27
|
+
?props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
28
|
+
?type: String
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: Integer,
|
|
33
|
+
props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
34
|
+
type: String
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_template_button_props =
|
|
4
|
+
{
|
|
5
|
+
active_for: Integer?,
|
|
6
|
+
autofill_text: String?,
|
|
7
|
+
country_code: String?,
|
|
8
|
+
offer_code: String?,
|
|
9
|
+
otp_type: String?,
|
|
10
|
+
package_name: String?,
|
|
11
|
+
phone_number: String?,
|
|
12
|
+
quick_reply_type: String?,
|
|
13
|
+
signature_hash: String?,
|
|
14
|
+
text: String?,
|
|
15
|
+
url: String?,
|
|
16
|
+
url_type: String?
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
|
|
20
|
+
attr_accessor active_for: Integer?
|
|
21
|
+
|
|
22
|
+
attr_accessor autofill_text: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor country_code: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor offer_code: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor otp_type: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor package_name: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor phone_number: String?
|
|
33
|
+
|
|
34
|
+
attr_accessor quick_reply_type: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor signature_hash: String?
|
|
37
|
+
|
|
38
|
+
attr_accessor text: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor url: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor url_type: String?
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
?active_for: Integer?,
|
|
46
|
+
?autofill_text: String?,
|
|
47
|
+
?country_code: String?,
|
|
48
|
+
?offer_code: String?,
|
|
49
|
+
?otp_type: String?,
|
|
50
|
+
?package_name: String?,
|
|
51
|
+
?phone_number: String?,
|
|
52
|
+
?quick_reply_type: String?,
|
|
53
|
+
?signature_hash: String?,
|
|
54
|
+
?text: String?,
|
|
55
|
+
?url: String?,
|
|
56
|
+
?url_type: String?
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
active_for: Integer?,
|
|
61
|
+
autofill_text: String?,
|
|
62
|
+
country_code: String?,
|
|
63
|
+
offer_code: String?,
|
|
64
|
+
otp_type: String?,
|
|
65
|
+
package_name: String?,
|
|
66
|
+
phone_number: String?,
|
|
67
|
+
quick_reply_type: String?,
|
|
68
|
+
signature_hash: String?,
|
|
69
|
+
text: String?,
|
|
70
|
+
url: String?,
|
|
71
|
+
url_type: String?
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_template_footer =
|
|
4
|
+
{
|
|
5
|
+
template: String,
|
|
6
|
+
type: String?,
|
|
7
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_reader template: String?
|
|
12
|
+
|
|
13
|
+
def template=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_accessor type: String?
|
|
16
|
+
|
|
17
|
+
attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?template: String,
|
|
21
|
+
?type: String?,
|
|
22
|
+
?variables: ::Array[Sentdm::TemplateVariable]?
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
template: String,
|
|
27
|
+
type: String?,
|
|
28
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_common_contracts_poc_os_template_header =
|
|
4
|
+
{
|
|
5
|
+
template: String,
|
|
6
|
+
type: String?,
|
|
7
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_reader template: String?
|
|
12
|
+
|
|
13
|
+
def template=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_accessor type: String?
|
|
16
|
+
|
|
17
|
+
attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?template: String,
|
|
21
|
+
?type: String?,
|
|
22
|
+
?variables: ::Array[Sentdm::TemplateVariable]?
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
template: String,
|
|
27
|
+
type: String?,
|
|
28
|
+
variables: ::Array[Sentdm::TemplateVariable]?
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info =
|
|
4
|
+
{
|
|
5
|
+
city: String?,
|
|
6
|
+
country: String?,
|
|
7
|
+
country_of_registration: String?,
|
|
8
|
+
entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
9
|
+
legal_name: String?,
|
|
10
|
+
postal_code: String?,
|
|
11
|
+
state: String?,
|
|
12
|
+
street: String?,
|
|
13
|
+
tax_id: String?,
|
|
14
|
+
tax_id_type: String?,
|
|
15
|
+
url: String?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor city: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor country: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor country_of_registration: String?
|
|
24
|
+
|
|
25
|
+
attr_accessor entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?
|
|
26
|
+
|
|
27
|
+
attr_accessor legal_name: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor postal_code: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor state: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor street: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor tax_id: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor tax_id_type: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor url: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?city: String?,
|
|
43
|
+
?country: String?,
|
|
44
|
+
?country_of_registration: String?,
|
|
45
|
+
?entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
46
|
+
?legal_name: String?,
|
|
47
|
+
?postal_code: String?,
|
|
48
|
+
?state: String?,
|
|
49
|
+
?street: String?,
|
|
50
|
+
?tax_id: String?,
|
|
51
|
+
?tax_id_type: String?,
|
|
52
|
+
?url: String?
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
city: String?,
|
|
57
|
+
country: String?,
|
|
58
|
+
country_of_registration: String?,
|
|
59
|
+
entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
60
|
+
legal_name: String?,
|
|
61
|
+
postal_code: String?,
|
|
62
|
+
state: String?,
|
|
63
|
+
street: String?,
|
|
64
|
+
tax_id: String?,
|
|
65
|
+
tax_id_type: String?,
|
|
66
|
+
url: String?
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type entity_type =
|
|
70
|
+
:PRIVATE_PROFIT
|
|
71
|
+
| :PUBLIC_PROFIT
|
|
72
|
+
| :NON_PROFIT
|
|
73
|
+
| :SOLE_PROPRIETOR
|
|
74
|
+
| :GOVERNMENT
|
|
75
|
+
|
|
76
|
+
module EntityType
|
|
77
|
+
extend Sentdm::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
80
|
+
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
81
|
+
NON_PROFIT: :NON_PROFIT
|
|
82
|
+
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
83
|
+
GOVERNMENT: :GOVERNMENT
|
|
84
|
+
|
|
85
|
+
def self?.values: -> ::Array[Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type]
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info =
|
|
4
|
+
{
|
|
5
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
6
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
7
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
8
|
+
expected_messaging_volume: String?,
|
|
9
|
+
is_tcr_application: bool?,
|
|
10
|
+
notes: String?,
|
|
11
|
+
phone_number_prefix: String?,
|
|
12
|
+
primary_use_case: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
17
|
+
|
|
18
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
19
|
+
|
|
20
|
+
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
21
|
+
|
|
22
|
+
attr_accessor expected_messaging_volume: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor is_tcr_application: bool?
|
|
25
|
+
|
|
26
|
+
attr_accessor notes: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor phone_number_prefix: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor primary_use_case: String?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
34
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
35
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
36
|
+
?expected_messaging_volume: String?,
|
|
37
|
+
?is_tcr_application: bool?,
|
|
38
|
+
?notes: String?,
|
|
39
|
+
?phone_number_prefix: String?,
|
|
40
|
+
?primary_use_case: String?
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
45
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
46
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
47
|
+
expected_messaging_volume: String?,
|
|
48
|
+
is_tcr_application: bool?,
|
|
49
|
+
notes: String?,
|
|
50
|
+
phone_number_prefix: String?,
|
|
51
|
+
primary_use_case: String?
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info =
|
|
4
|
+
{
|
|
5
|
+
name: String,
|
|
6
|
+
business_name: String?,
|
|
7
|
+
email: String?,
|
|
8
|
+
phone: String?,
|
|
9
|
+
phone_country_code: String?,
|
|
10
|
+
role: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor name: String
|
|
15
|
+
|
|
16
|
+
attr_accessor business_name: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor email: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor phone: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor phone_country_code: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor role: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
name: String,
|
|
28
|
+
?business_name: String?,
|
|
29
|
+
?email: String?,
|
|
30
|
+
?phone: String?,
|
|
31
|
+
?phone_country_code: String?,
|
|
32
|
+
?role: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
name: String,
|
|
37
|
+
business_name: String?,
|
|
38
|
+
email: String?,
|
|
39
|
+
phone: String?,
|
|
40
|
+
phone_country_code: String?,
|
|
41
|
+
role: String?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|