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
|
@@ -8,7 +8,7 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::Models::UserListResponse, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# List of users response
|
|
12
12
|
sig { returns(T.nilable(Sentdm::Models::UserListResponse::Data)) }
|
|
13
13
|
attr_reader :data
|
|
14
14
|
|
|
@@ -19,14 +19,14 @@ module Sentdm
|
|
|
19
19
|
end
|
|
20
20
|
attr_writer :data
|
|
21
21
|
|
|
22
|
-
# Error
|
|
22
|
+
# Error information
|
|
23
23
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
24
24
|
attr_reader :error
|
|
25
25
|
|
|
26
26
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
27
27
|
attr_writer :error
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Request and response metadata
|
|
30
30
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
31
|
attr_reader :meta
|
|
32
32
|
|
|
@@ -50,11 +50,11 @@ module Sentdm
|
|
|
50
50
|
).returns(T.attached_class)
|
|
51
51
|
end
|
|
52
52
|
def self.new(
|
|
53
|
-
#
|
|
53
|
+
# List of users response
|
|
54
54
|
data: nil,
|
|
55
|
-
# Error
|
|
55
|
+
# Error information
|
|
56
56
|
error: nil,
|
|
57
|
-
#
|
|
57
|
+
# Request and response metadata
|
|
58
58
|
meta: nil,
|
|
59
59
|
# Indicates whether the request was successful
|
|
60
60
|
success: nil
|
|
@@ -90,7 +90,7 @@ module Sentdm
|
|
|
90
90
|
sig { params(users: T::Array[Sentdm::UserResponse::OrHash]).void }
|
|
91
91
|
attr_writer :users
|
|
92
92
|
|
|
93
|
-
#
|
|
93
|
+
# List of users response
|
|
94
94
|
sig do
|
|
95
95
|
params(users: T::Array[Sentdm::UserResponse::OrHash]).returns(
|
|
96
96
|
T.attached_class
|
|
@@ -27,14 +27,14 @@ module Sentdm
|
|
|
27
27
|
end
|
|
28
28
|
attr_writer :data
|
|
29
29
|
|
|
30
|
-
# Error
|
|
30
|
+
# Error information
|
|
31
31
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
32
32
|
attr_reader :error
|
|
33
33
|
|
|
34
34
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
35
35
|
attr_writer :error
|
|
36
36
|
|
|
37
|
-
#
|
|
37
|
+
# Request and response metadata
|
|
38
38
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
39
39
|
attr_reader :meta
|
|
40
40
|
|
|
@@ -63,9 +63,9 @@ module Sentdm
|
|
|
63
63
|
def self.new(
|
|
64
64
|
# The response data (null if error)
|
|
65
65
|
data: nil,
|
|
66
|
-
# Error
|
|
66
|
+
# Error information
|
|
67
67
|
error: nil,
|
|
68
|
-
#
|
|
68
|
+
# Request and response metadata
|
|
69
69
|
meta: nil,
|
|
70
70
|
# Indicates whether the request was successful
|
|
71
71
|
success: nil
|
|
@@ -25,14 +25,14 @@ module Sentdm
|
|
|
25
25
|
end
|
|
26
26
|
attr_writer :data
|
|
27
27
|
|
|
28
|
-
# Error
|
|
28
|
+
# Error information
|
|
29
29
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
30
30
|
attr_reader :error
|
|
31
31
|
|
|
32
32
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
33
33
|
attr_writer :error
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Request and response metadata
|
|
36
36
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
37
37
|
attr_reader :meta
|
|
38
38
|
|
|
@@ -59,9 +59,9 @@ module Sentdm
|
|
|
59
59
|
def self.new(
|
|
60
60
|
# The response data (null if error)
|
|
61
61
|
data: nil,
|
|
62
|
-
# Error
|
|
62
|
+
# Error information
|
|
63
63
|
error: nil,
|
|
64
|
-
#
|
|
64
|
+
# Request and response metadata
|
|
65
65
|
meta: nil,
|
|
66
66
|
# Indicates whether the request was successful
|
|
67
67
|
success: nil
|
|
@@ -19,14 +19,14 @@ module Sentdm
|
|
|
19
19
|
end
|
|
20
20
|
attr_writer :data
|
|
21
21
|
|
|
22
|
-
# Error
|
|
22
|
+
# Error information
|
|
23
23
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
24
24
|
attr_reader :error
|
|
25
25
|
|
|
26
26
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
27
27
|
attr_writer :error
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Request and response metadata
|
|
30
30
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
31
|
attr_reader :meta
|
|
32
32
|
|
|
@@ -52,9 +52,9 @@ module Sentdm
|
|
|
52
52
|
def self.new(
|
|
53
53
|
# The response data (null if error)
|
|
54
54
|
data: nil,
|
|
55
|
-
# Error
|
|
55
|
+
# Error information
|
|
56
56
|
error: nil,
|
|
57
|
-
#
|
|
57
|
+
# Request and response metadata
|
|
58
58
|
meta: nil,
|
|
59
59
|
# Indicates whether the request was successful
|
|
60
60
|
success: nil
|
|
@@ -25,14 +25,14 @@ module Sentdm
|
|
|
25
25
|
end
|
|
26
26
|
attr_writer :data
|
|
27
27
|
|
|
28
|
-
# Error
|
|
28
|
+
# Error information
|
|
29
29
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
30
30
|
attr_reader :error
|
|
31
31
|
|
|
32
32
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
33
33
|
attr_writer :error
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Request and response metadata
|
|
36
36
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
37
37
|
attr_reader :meta
|
|
38
38
|
|
|
@@ -61,9 +61,9 @@ module Sentdm
|
|
|
61
61
|
def self.new(
|
|
62
62
|
# The response data (null if error)
|
|
63
63
|
data: nil,
|
|
64
|
-
# Error
|
|
64
|
+
# Error information
|
|
65
65
|
error: nil,
|
|
66
|
-
#
|
|
66
|
+
# Request and response metadata
|
|
67
67
|
meta: nil,
|
|
68
68
|
# Indicates whether the request was successful
|
|
69
69
|
success: nil
|
|
@@ -19,14 +19,14 @@ module Sentdm
|
|
|
19
19
|
end
|
|
20
20
|
attr_writer :data
|
|
21
21
|
|
|
22
|
-
# Error
|
|
22
|
+
# Error information
|
|
23
23
|
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
24
24
|
attr_reader :error
|
|
25
25
|
|
|
26
26
|
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
27
27
|
attr_writer :error
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Request and response metadata
|
|
30
30
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
31
31
|
attr_reader :meta
|
|
32
32
|
|
|
@@ -52,9 +52,9 @@ module Sentdm
|
|
|
52
52
|
def self.new(
|
|
53
53
|
# The response data (null if error)
|
|
54
54
|
data: nil,
|
|
55
|
-
# Error
|
|
55
|
+
# Error information
|
|
56
56
|
error: nil,
|
|
57
|
-
#
|
|
57
|
+
# Request and response metadata
|
|
58
58
|
meta: nil,
|
|
59
59
|
# Indicates whether the request was successful
|
|
60
60
|
success: nil
|
data/rbi/sentdm/models.rbi
CHANGED
|
@@ -15,8 +15,6 @@ module Sentdm
|
|
|
15
15
|
|
|
16
16
|
APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
17
17
|
|
|
18
|
-
BaseDto = Sentdm::Models::BaseDto
|
|
19
|
-
|
|
20
18
|
BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
21
19
|
|
|
22
20
|
BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
@@ -44,7 +42,7 @@ module Sentdm
|
|
|
44
42
|
|
|
45
43
|
MessageSendParams = Sentdm::Models::MessageSendParams
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
MutationRequest = Sentdm::Models::MutationRequest
|
|
48
46
|
|
|
49
47
|
NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
50
48
|
|
|
@@ -52,7 +50,7 @@ module Sentdm
|
|
|
52
50
|
|
|
53
51
|
PaymentDetails = Sentdm::Models::PaymentDetails
|
|
54
52
|
|
|
55
|
-
|
|
53
|
+
ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
|
|
56
54
|
|
|
57
55
|
ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
58
56
|
|
|
@@ -70,6 +68,33 @@ module Sentdm
|
|
|
70
68
|
|
|
71
69
|
ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
72
70
|
|
|
71
|
+
SentDmServicesCommonContractsPocOsAuthenticationConfig =
|
|
72
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
73
|
+
|
|
74
|
+
SentDmServicesCommonContractsPocOsTemplateBody =
|
|
75
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
76
|
+
|
|
77
|
+
SentDmServicesCommonContractsPocOsTemplateButton =
|
|
78
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
79
|
+
|
|
80
|
+
SentDmServicesCommonContractsPocOsTemplateButtonProps =
|
|
81
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
82
|
+
|
|
83
|
+
SentDmServicesCommonContractsPocOsTemplateFooter =
|
|
84
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
85
|
+
|
|
86
|
+
SentDmServicesCommonContractsPocOsTemplateHeader =
|
|
87
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
88
|
+
|
|
89
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo =
|
|
90
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
91
|
+
|
|
92
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo =
|
|
93
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
94
|
+
|
|
95
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo =
|
|
96
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
97
|
+
|
|
73
98
|
TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
74
99
|
|
|
75
100
|
TcrVertical = Sentdm::Models::TcrVertical
|
|
@@ -66,7 +66,8 @@ module Sentdm
|
|
|
66
66
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
67
67
|
# effects Useful for testing integrations without actual execution
|
|
68
68
|
sandbox: nil,
|
|
69
|
-
# Body param:
|
|
69
|
+
# Body param: SDK-style template reference: resolve by ID or by name, with
|
|
70
|
+
# optional parameters.
|
|
70
71
|
template: nil,
|
|
71
72
|
# Body param: List of recipient phone numbers in E.164 format (multi-recipient
|
|
72
73
|
# fan-out)
|
|
@@ -20,7 +20,7 @@ module Sentdm
|
|
|
20
20
|
def create(
|
|
21
21
|
# Path param: Profile ID from route
|
|
22
22
|
profile_id,
|
|
23
|
-
# Body param: Campaign data
|
|
23
|
+
# Body param: Campaign data for create or update operation
|
|
24
24
|
campaign:,
|
|
25
25
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
26
26
|
# effects Useful for testing integrations without actual execution
|
|
@@ -55,7 +55,7 @@ module Sentdm
|
|
|
55
55
|
campaign_id,
|
|
56
56
|
# Path param: Profile ID from route
|
|
57
57
|
profile_id:,
|
|
58
|
-
# Body param: Campaign data
|
|
58
|
+
# Body param: Campaign data for create or update operation
|
|
59
59
|
campaign:,
|
|
60
60
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
61
61
|
# effects Useful for testing integrations without actual execution
|
|
@@ -75,9 +75,8 @@ module Sentdm
|
|
|
75
75
|
allow_contact_sharing: nil,
|
|
76
76
|
# Body param: Whether templates are shared across profiles (default: false)
|
|
77
77
|
allow_template_sharing: nil,
|
|
78
|
-
# Body param: Billing contact for
|
|
79
|
-
# "profile" or "profile_and_organization".
|
|
80
|
-
# who is responsible for payment.
|
|
78
|
+
# Body param: Billing contact information for a profile. Required when
|
|
79
|
+
# billing_model is "profile" or "profile_and_organization".
|
|
81
80
|
billing_contact: nil,
|
|
82
81
|
# Body param: Billing model: profile, organization, or profile_and_organization
|
|
83
82
|
# (default: profile).
|
|
@@ -88,9 +87,8 @@ module Sentdm
|
|
|
88
87
|
# - "profile_and_organization": the profile is billed first with the organization
|
|
89
88
|
# as fallback; billing_contact is required.
|
|
90
89
|
billing_model: nil,
|
|
91
|
-
# Body param: Brand and KYC
|
|
92
|
-
#
|
|
93
|
-
# inherit_tcr_brand is true.
|
|
90
|
+
# Body param: Brand and KYC data grouped into contact, business, and compliance
|
|
91
|
+
# sections
|
|
94
92
|
brand: nil,
|
|
95
93
|
# Body param: Profile description (optional)
|
|
96
94
|
description: nil,
|
|
@@ -110,9 +108,9 @@ module Sentdm
|
|
|
110
108
|
inherit_templates: nil,
|
|
111
109
|
# Body param: Profile name (required)
|
|
112
110
|
name: nil,
|
|
113
|
-
# Body param: Payment card details for
|
|
114
|
-
#
|
|
115
|
-
# servers
|
|
111
|
+
# Body param: Payment card details for a profile. Accepted when billing_model is
|
|
112
|
+
# "profile" or "profile_and_organization". These details are not stored on our
|
|
113
|
+
# servers and will be forwarded to the payment processor.
|
|
116
114
|
payment_details: nil,
|
|
117
115
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
118
116
|
# effects Useful for testing integrations without actual execution
|
|
@@ -121,11 +119,11 @@ module Sentdm
|
|
|
121
119
|
# contain only letters, numbers, and spaces, and include at least one letter.
|
|
122
120
|
# Example: "SALES", "Mkt 2", "Support1".
|
|
123
121
|
short_name: nil,
|
|
124
|
-
# Body param: Direct WhatsApp Business Account credentials for
|
|
125
|
-
#
|
|
126
|
-
# inheriting from the organization.
|
|
127
|
-
#
|
|
128
|
-
#
|
|
122
|
+
# Body param: Direct WhatsApp Business Account credentials for a profile. Use this
|
|
123
|
+
# when the profile should have its own WhatsApp Business Account instead of
|
|
124
|
+
# inheriting from the organization. Credentials must be obtained from Meta
|
|
125
|
+
# Business Manager by creating a System User with whatsapp_business_messaging and
|
|
126
|
+
# whatsapp_business_management scopes.
|
|
129
127
|
whatsapp_business_account: nil,
|
|
130
128
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
131
129
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
@@ -213,10 +211,8 @@ module Sentdm
|
|
|
213
211
|
allow_number_change_during_onboarding: nil,
|
|
214
212
|
# Body param: Whether templates are shared across profiles (optional)
|
|
215
213
|
allow_template_sharing: nil,
|
|
216
|
-
# Body param: Billing contact for
|
|
217
|
-
# "profile" or "profile_and_organization"
|
|
218
|
-
# configured yet. Identifies who receives invoices and who is responsible for
|
|
219
|
-
# payment.
|
|
214
|
+
# Body param: Billing contact information for a profile. Required when
|
|
215
|
+
# billing_model is "profile" or "profile_and_organization".
|
|
220
216
|
billing_contact: nil,
|
|
221
217
|
# Body param: Billing model: profile, organization, or profile_and_organization
|
|
222
218
|
# (optional).
|
|
@@ -227,10 +223,8 @@ module Sentdm
|
|
|
227
223
|
# - "profile_and_organization": the profile is billed first with the organization
|
|
228
224
|
# as fallback; billing_contact is required.
|
|
229
225
|
billing_model: nil,
|
|
230
|
-
# Body param: Brand and KYC
|
|
231
|
-
#
|
|
232
|
-
# set when inherit_tcr_brand is true. Once a brand has been submitted to TCR it
|
|
233
|
-
# cannot be modified.
|
|
226
|
+
# Body param: Brand and KYC data grouped into contact, business, and compliance
|
|
227
|
+
# sections
|
|
234
228
|
brand: nil,
|
|
235
229
|
# Body param: Profile description (optional)
|
|
236
230
|
description: nil,
|
|
@@ -247,9 +241,9 @@ module Sentdm
|
|
|
247
241
|
inherit_templates: nil,
|
|
248
242
|
# Body param: Profile name (optional)
|
|
249
243
|
name: nil,
|
|
250
|
-
# Body param: Payment card details for
|
|
251
|
-
#
|
|
252
|
-
# servers
|
|
244
|
+
# Body param: Payment card details for a profile. Accepted when billing_model is
|
|
245
|
+
# "profile" or "profile_and_organization". These details are not stored on our
|
|
246
|
+
# servers and will be forwarded to the payment processor.
|
|
253
247
|
payment_details: nil,
|
|
254
248
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
255
249
|
# effects Useful for testing integrations without actual execution
|
|
@@ -349,7 +343,7 @@ module Sentdm
|
|
|
349
343
|
request_options: Sentdm::RequestOptions::OrHash
|
|
350
344
|
).returns(T.anything)
|
|
351
345
|
end
|
|
352
|
-
def
|
|
346
|
+
def complete(
|
|
353
347
|
# Path param: Profile ID from route
|
|
354
348
|
profile_id,
|
|
355
349
|
# Body param: Webhook URL to call when profile completion finishes (success or
|
|
@@ -26,7 +26,8 @@ module Sentdm
|
|
|
26
26
|
category: nil,
|
|
27
27
|
# Body param: Source of template creation (default: from-api)
|
|
28
28
|
creation_source: nil,
|
|
29
|
-
# Body param:
|
|
29
|
+
# Body param: Complete definition of a message template including header, body,
|
|
30
|
+
# footer, and buttons
|
|
30
31
|
definition: nil,
|
|
31
32
|
# Body param: Template language code (e.g., en_US) (optional, auto-detected if not
|
|
32
33
|
# provided)
|
|
@@ -89,7 +90,8 @@ module Sentdm
|
|
|
89
90
|
id,
|
|
90
91
|
# Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
91
92
|
category: nil,
|
|
92
|
-
# Body param:
|
|
93
|
+
# Body param: Complete definition of a message template including header, body,
|
|
94
|
+
# footer, and buttons
|
|
93
95
|
definition: nil,
|
|
94
96
|
# Body param: Template language code (e.g., en_US)
|
|
95
97
|
language: nil,
|
|
@@ -2,209 +2,29 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type brands_brand_data =
|
|
4
4
|
{
|
|
5
|
-
compliance: Sentdm::
|
|
6
|
-
contact: Sentdm::
|
|
7
|
-
business: Sentdm::
|
|
5
|
+
compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
|
|
6
|
+
contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
7
|
+
business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class BrandsBrandData < Sentdm::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor compliance: Sentdm::
|
|
11
|
+
attr_accessor compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
12
12
|
|
|
13
|
-
attr_accessor contact: Sentdm::
|
|
13
|
+
attr_accessor contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
14
14
|
|
|
15
|
-
attr_accessor business: Sentdm::
|
|
15
|
+
attr_accessor business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
|
|
16
16
|
|
|
17
17
|
def initialize: (
|
|
18
|
-
compliance: Sentdm::
|
|
19
|
-
contact: Sentdm::
|
|
20
|
-
?business: Sentdm::
|
|
18
|
+
compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
|
|
19
|
+
contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
20
|
+
?business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
|
|
21
21
|
) -> void
|
|
22
22
|
|
|
23
23
|
def to_hash: -> {
|
|
24
|
-
compliance: Sentdm::
|
|
25
|
-
contact: Sentdm::
|
|
26
|
-
business: Sentdm::
|
|
24
|
+
compliance: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
|
|
25
|
+
contact: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
26
|
+
business: Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo?
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
type compliance =
|
|
30
|
-
{
|
|
31
|
-
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
32
|
-
vertical: Sentdm::Models::tcr_vertical,
|
|
33
|
-
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
34
|
-
expected_messaging_volume: String?,
|
|
35
|
-
is_tcr_application: bool?,
|
|
36
|
-
notes: String?,
|
|
37
|
-
phone_number_prefix: String?,
|
|
38
|
-
primary_use_case: String?
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
42
|
-
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
43
|
-
|
|
44
|
-
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
45
|
-
|
|
46
|
-
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
47
|
-
|
|
48
|
-
attr_accessor expected_messaging_volume: String?
|
|
49
|
-
|
|
50
|
-
attr_accessor is_tcr_application: bool?
|
|
51
|
-
|
|
52
|
-
attr_accessor notes: String?
|
|
53
|
-
|
|
54
|
-
attr_accessor phone_number_prefix: String?
|
|
55
|
-
|
|
56
|
-
attr_accessor primary_use_case: String?
|
|
57
|
-
|
|
58
|
-
def initialize: (
|
|
59
|
-
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
60
|
-
vertical: Sentdm::Models::tcr_vertical,
|
|
61
|
-
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
62
|
-
?expected_messaging_volume: String?,
|
|
63
|
-
?is_tcr_application: bool?,
|
|
64
|
-
?notes: String?,
|
|
65
|
-
?phone_number_prefix: String?,
|
|
66
|
-
?primary_use_case: String?
|
|
67
|
-
) -> void
|
|
68
|
-
|
|
69
|
-
def to_hash: -> {
|
|
70
|
-
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
71
|
-
vertical: Sentdm::Models::tcr_vertical,
|
|
72
|
-
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
73
|
-
expected_messaging_volume: String?,
|
|
74
|
-
is_tcr_application: bool?,
|
|
75
|
-
notes: String?,
|
|
76
|
-
phone_number_prefix: String?,
|
|
77
|
-
primary_use_case: String?
|
|
78
|
-
}
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
type contact =
|
|
82
|
-
{
|
|
83
|
-
name: String,
|
|
84
|
-
business_name: String?,
|
|
85
|
-
email: String?,
|
|
86
|
-
phone: String?,
|
|
87
|
-
phone_country_code: String?,
|
|
88
|
-
role: String?
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
class Contact < Sentdm::Internal::Type::BaseModel
|
|
92
|
-
attr_accessor name: String
|
|
93
|
-
|
|
94
|
-
attr_accessor business_name: String?
|
|
95
|
-
|
|
96
|
-
attr_accessor email: String?
|
|
97
|
-
|
|
98
|
-
attr_accessor phone: String?
|
|
99
|
-
|
|
100
|
-
attr_accessor phone_country_code: String?
|
|
101
|
-
|
|
102
|
-
attr_accessor role: String?
|
|
103
|
-
|
|
104
|
-
def initialize: (
|
|
105
|
-
name: String,
|
|
106
|
-
?business_name: String?,
|
|
107
|
-
?email: String?,
|
|
108
|
-
?phone: String?,
|
|
109
|
-
?phone_country_code: String?,
|
|
110
|
-
?role: String?
|
|
111
|
-
) -> void
|
|
112
|
-
|
|
113
|
-
def to_hash: -> {
|
|
114
|
-
name: String,
|
|
115
|
-
business_name: String?,
|
|
116
|
-
email: String?,
|
|
117
|
-
phone: String?,
|
|
118
|
-
phone_country_code: String?,
|
|
119
|
-
role: String?
|
|
120
|
-
}
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
type business =
|
|
124
|
-
{
|
|
125
|
-
city: String?,
|
|
126
|
-
country: String?,
|
|
127
|
-
country_of_registration: String?,
|
|
128
|
-
entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
|
|
129
|
-
legal_name: String?,
|
|
130
|
-
postal_code: String?,
|
|
131
|
-
state: String?,
|
|
132
|
-
street: String?,
|
|
133
|
-
tax_id: String?,
|
|
134
|
-
tax_id_type: String?,
|
|
135
|
-
url: String?
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
class Business < Sentdm::Internal::Type::BaseModel
|
|
139
|
-
attr_accessor city: String?
|
|
140
|
-
|
|
141
|
-
attr_accessor country: String?
|
|
142
|
-
|
|
143
|
-
attr_accessor country_of_registration: String?
|
|
144
|
-
|
|
145
|
-
attr_accessor entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?
|
|
146
|
-
|
|
147
|
-
attr_accessor legal_name: String?
|
|
148
|
-
|
|
149
|
-
attr_accessor postal_code: String?
|
|
150
|
-
|
|
151
|
-
attr_accessor state: String?
|
|
152
|
-
|
|
153
|
-
attr_accessor street: String?
|
|
154
|
-
|
|
155
|
-
attr_accessor tax_id: String?
|
|
156
|
-
|
|
157
|
-
attr_accessor tax_id_type: String?
|
|
158
|
-
|
|
159
|
-
attr_accessor url: String?
|
|
160
|
-
|
|
161
|
-
def initialize: (
|
|
162
|
-
?city: String?,
|
|
163
|
-
?country: String?,
|
|
164
|
-
?country_of_registration: String?,
|
|
165
|
-
?entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
|
|
166
|
-
?legal_name: String?,
|
|
167
|
-
?postal_code: String?,
|
|
168
|
-
?state: String?,
|
|
169
|
-
?street: String?,
|
|
170
|
-
?tax_id: String?,
|
|
171
|
-
?tax_id_type: String?,
|
|
172
|
-
?url: String?
|
|
173
|
-
) -> void
|
|
174
|
-
|
|
175
|
-
def to_hash: -> {
|
|
176
|
-
city: String?,
|
|
177
|
-
country: String?,
|
|
178
|
-
country_of_registration: String?,
|
|
179
|
-
entity_type: Sentdm::Models::BrandsBrandData::Business::entity_type?,
|
|
180
|
-
legal_name: String?,
|
|
181
|
-
postal_code: String?,
|
|
182
|
-
state: String?,
|
|
183
|
-
street: String?,
|
|
184
|
-
tax_id: String?,
|
|
185
|
-
tax_id_type: String?,
|
|
186
|
-
url: String?
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
type entity_type =
|
|
190
|
-
:PRIVATE_PROFIT
|
|
191
|
-
| :PUBLIC_PROFIT
|
|
192
|
-
| :NON_PROFIT
|
|
193
|
-
| :SOLE_PROPRIETOR
|
|
194
|
-
| :GOVERNMENT
|
|
195
|
-
|
|
196
|
-
module EntityType
|
|
197
|
-
extend Sentdm::Internal::Type::Enum
|
|
198
|
-
|
|
199
|
-
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
200
|
-
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
201
|
-
NON_PROFIT: :NON_PROFIT
|
|
202
|
-
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
203
|
-
GOVERNMENT: :GOVERNMENT
|
|
204
|
-
|
|
205
|
-
def self?.values: -> ::Array[Sentdm::Models::BrandsBrandData::Business::entity_type]
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
28
|
end
|
|
209
29
|
end
|
|
210
30
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type mutation_request = { sandbox: bool }
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class MutationRequest < Sentdm::Internal::Type::BaseModel
|
|
6
6
|
attr_reader sandbox: bool?
|
|
7
7
|
|
|
8
8
|
def sandbox=: (bool) -> bool
|