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
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateBody < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateBody,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
15
|
-
# channel-specific content is provided
|
|
16
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
17
|
-
attr_reader :multi_channel
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
22
|
-
).void
|
|
23
|
-
end
|
|
24
|
-
attr_writer :multi_channel
|
|
25
|
-
|
|
26
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
27
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
28
|
-
attr_reader :sms
|
|
29
|
-
|
|
30
|
-
sig { params(sms: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void }
|
|
31
|
-
attr_writer :sms
|
|
32
|
-
|
|
33
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
34
|
-
# messages
|
|
35
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
36
|
-
attr_reader :whatsapp
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
params(whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void
|
|
40
|
-
end
|
|
41
|
-
attr_writer :whatsapp
|
|
42
|
-
|
|
43
|
-
# Body section of a message template with channel-specific content
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
47
|
-
sms: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
48
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
49
|
-
).returns(T.attached_class)
|
|
50
|
-
end
|
|
51
|
-
def self.new(
|
|
52
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
53
|
-
# channel-specific content is provided
|
|
54
|
-
multi_channel: nil,
|
|
55
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
56
|
-
sms: nil,
|
|
57
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
58
|
-
# messages
|
|
59
|
-
whatsapp: nil
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
override.returns(
|
|
65
|
-
{
|
|
66
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent),
|
|
67
|
-
sms: T.nilable(Sentdm::TemplateBodyContent),
|
|
68
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent)
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
end
|
|
72
|
-
def to_hash
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButton,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# The unique identifier of the button (1-based index)
|
|
15
|
-
sig { returns(T.nilable(Integer)) }
|
|
16
|
-
attr_reader :id
|
|
17
|
-
|
|
18
|
-
sig { params(id: Integer).void }
|
|
19
|
-
attr_writer :id
|
|
20
|
-
|
|
21
|
-
# Properties specific to the button type
|
|
22
|
-
sig do
|
|
23
|
-
returns(
|
|
24
|
-
T.nilable(
|
|
25
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
26
|
-
)
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
attr_reader :props
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
props:
|
|
34
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps::OrHash
|
|
35
|
-
).void
|
|
36
|
-
end
|
|
37
|
-
attr_writer :props
|
|
38
|
-
|
|
39
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
40
|
-
sig { returns(T.nilable(String)) }
|
|
41
|
-
attr_reader :type
|
|
42
|
-
|
|
43
|
-
sig { params(type: String).void }
|
|
44
|
-
attr_writer :type
|
|
45
|
-
|
|
46
|
-
# Interactive button in a message template
|
|
47
|
-
sig do
|
|
48
|
-
params(
|
|
49
|
-
id: Integer,
|
|
50
|
-
props:
|
|
51
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps::OrHash,
|
|
52
|
-
type: String
|
|
53
|
-
).returns(T.attached_class)
|
|
54
|
-
end
|
|
55
|
-
def self.new(
|
|
56
|
-
# The unique identifier of the button (1-based index)
|
|
57
|
-
id: nil,
|
|
58
|
-
# Properties specific to the button type
|
|
59
|
-
props: nil,
|
|
60
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
61
|
-
type: nil
|
|
62
|
-
)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
sig do
|
|
66
|
-
override.returns(
|
|
67
|
-
{
|
|
68
|
-
id: Integer,
|
|
69
|
-
props:
|
|
70
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
71
|
-
type: String
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
def to_hash
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(T.nilable(Integer)) }
|
|
15
|
-
attr_accessor :active_for
|
|
16
|
-
|
|
17
|
-
sig { returns(T.nilable(String)) }
|
|
18
|
-
attr_accessor :autofill_text
|
|
19
|
-
|
|
20
|
-
sig { returns(T.nilable(String)) }
|
|
21
|
-
attr_accessor :country_code
|
|
22
|
-
|
|
23
|
-
sig { returns(T.nilable(String)) }
|
|
24
|
-
attr_accessor :offer_code
|
|
25
|
-
|
|
26
|
-
sig { returns(T.nilable(String)) }
|
|
27
|
-
attr_accessor :otp_type
|
|
28
|
-
|
|
29
|
-
sig { returns(T.nilable(String)) }
|
|
30
|
-
attr_accessor :package_name
|
|
31
|
-
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_accessor :phone_number
|
|
34
|
-
|
|
35
|
-
sig { returns(T.nilable(String)) }
|
|
36
|
-
attr_accessor :quick_reply_type
|
|
37
|
-
|
|
38
|
-
sig { returns(T.nilable(String)) }
|
|
39
|
-
attr_accessor :signature_hash
|
|
40
|
-
|
|
41
|
-
sig { returns(T.nilable(String)) }
|
|
42
|
-
attr_accessor :text
|
|
43
|
-
|
|
44
|
-
sig { returns(T.nilable(String)) }
|
|
45
|
-
attr_accessor :url
|
|
46
|
-
|
|
47
|
-
sig { returns(T.nilable(String)) }
|
|
48
|
-
attr_accessor :url_type
|
|
49
|
-
|
|
50
|
-
sig do
|
|
51
|
-
params(
|
|
52
|
-
active_for: T.nilable(Integer),
|
|
53
|
-
autofill_text: T.nilable(String),
|
|
54
|
-
country_code: T.nilable(String),
|
|
55
|
-
offer_code: T.nilable(String),
|
|
56
|
-
otp_type: T.nilable(String),
|
|
57
|
-
package_name: T.nilable(String),
|
|
58
|
-
phone_number: T.nilable(String),
|
|
59
|
-
quick_reply_type: T.nilable(String),
|
|
60
|
-
signature_hash: T.nilable(String),
|
|
61
|
-
text: T.nilable(String),
|
|
62
|
-
url: T.nilable(String),
|
|
63
|
-
url_type: T.nilable(String)
|
|
64
|
-
).returns(T.attached_class)
|
|
65
|
-
end
|
|
66
|
-
def self.new(
|
|
67
|
-
active_for: nil,
|
|
68
|
-
autofill_text: nil,
|
|
69
|
-
country_code: nil,
|
|
70
|
-
offer_code: nil,
|
|
71
|
-
otp_type: nil,
|
|
72
|
-
package_name: nil,
|
|
73
|
-
phone_number: nil,
|
|
74
|
-
quick_reply_type: nil,
|
|
75
|
-
signature_hash: nil,
|
|
76
|
-
text: nil,
|
|
77
|
-
url: nil,
|
|
78
|
-
url_type: nil
|
|
79
|
-
)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
sig do
|
|
83
|
-
override.returns(
|
|
84
|
-
{
|
|
85
|
-
active_for: T.nilable(Integer),
|
|
86
|
-
autofill_text: T.nilable(String),
|
|
87
|
-
country_code: T.nilable(String),
|
|
88
|
-
offer_code: T.nilable(String),
|
|
89
|
-
otp_type: T.nilable(String),
|
|
90
|
-
package_name: T.nilable(String),
|
|
91
|
-
phone_number: T.nilable(String),
|
|
92
|
-
quick_reply_type: T.nilable(String),
|
|
93
|
-
signature_hash: T.nilable(String),
|
|
94
|
-
text: T.nilable(String),
|
|
95
|
-
url: T.nilable(String),
|
|
96
|
-
url_type: T.nilable(String)
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
def to_hash
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# The footer template text with optional variable placeholders
|
|
15
|
-
sig { returns(T.nilable(String)) }
|
|
16
|
-
attr_reader :template
|
|
17
|
-
|
|
18
|
-
sig { params(template: String).void }
|
|
19
|
-
attr_writer :template
|
|
20
|
-
|
|
21
|
-
# The type of footer (typically "text")
|
|
22
|
-
sig { returns(T.nilable(String)) }
|
|
23
|
-
attr_accessor :type
|
|
24
|
-
|
|
25
|
-
# List of variables used in the footer template
|
|
26
|
-
sig { returns(T.nilable(T::Array[Sentdm::TemplateVariable])) }
|
|
27
|
-
attr_accessor :variables
|
|
28
|
-
|
|
29
|
-
# Footer section of a message template
|
|
30
|
-
sig do
|
|
31
|
-
params(
|
|
32
|
-
template: String,
|
|
33
|
-
type: T.nilable(String),
|
|
34
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable::OrHash])
|
|
35
|
-
).returns(T.attached_class)
|
|
36
|
-
end
|
|
37
|
-
def self.new(
|
|
38
|
-
# The footer template text with optional variable placeholders
|
|
39
|
-
template: nil,
|
|
40
|
-
# The type of footer (typically "text")
|
|
41
|
-
type: nil,
|
|
42
|
-
# List of variables used in the footer template
|
|
43
|
-
variables: nil
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig do
|
|
48
|
-
override.returns(
|
|
49
|
-
{
|
|
50
|
-
template: String,
|
|
51
|
-
type: T.nilable(String),
|
|
52
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable])
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
def to_hash
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# The header template text with optional variable placeholders (e.g., "Welcome to
|
|
15
|
-
# {{0:variable}}")
|
|
16
|
-
sig { returns(T.nilable(String)) }
|
|
17
|
-
attr_reader :template
|
|
18
|
-
|
|
19
|
-
sig { params(template: String).void }
|
|
20
|
-
attr_writer :template
|
|
21
|
-
|
|
22
|
-
# The type of header (e.g., "text", "image", "video", "document")
|
|
23
|
-
sig { returns(T.nilable(String)) }
|
|
24
|
-
attr_accessor :type
|
|
25
|
-
|
|
26
|
-
# List of variables used in the header template
|
|
27
|
-
sig { returns(T.nilable(T::Array[Sentdm::TemplateVariable])) }
|
|
28
|
-
attr_accessor :variables
|
|
29
|
-
|
|
30
|
-
# Header section of a message template
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
template: String,
|
|
34
|
-
type: T.nilable(String),
|
|
35
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable::OrHash])
|
|
36
|
-
).returns(T.attached_class)
|
|
37
|
-
end
|
|
38
|
-
def self.new(
|
|
39
|
-
# The header template text with optional variable placeholders (e.g., "Welcome to
|
|
40
|
-
# {{0:variable}}")
|
|
41
|
-
template: nil,
|
|
42
|
-
# The type of header (e.g., "text", "image", "video", "document")
|
|
43
|
-
type: nil,
|
|
44
|
-
# List of variables used in the header template
|
|
45
|
-
variables: nil
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
sig do
|
|
50
|
-
override.returns(
|
|
51
|
-
{
|
|
52
|
-
template: String,
|
|
53
|
-
type: T.nilable(String),
|
|
54
|
-
variables: T.nilable(T::Array[Sentdm::TemplateVariable])
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
def to_hash
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Resources
|
|
5
|
-
class Brands
|
|
6
|
-
sig { returns(Sentdm::Resources::Brands::Campaigns) }
|
|
7
|
-
attr_reader :campaigns
|
|
8
|
-
|
|
9
|
-
# @api private
|
|
10
|
-
sig { params(client: Sentdm::Client).returns(T.attached_class) }
|
|
11
|
-
def self.new(client:)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|