sentdm 0.7.0 → 0.9.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 +18 -0
- data/README.md +1 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_response_of_contact.rb +11 -8
- data/lib/sentdm/models/api_response_of_profile_detail.rb +8 -8
- data/lib/sentdm/models/api_response_of_user.rb +8 -8
- data/lib/sentdm/models/api_response_template.rb +8 -8
- data/lib/sentdm/models/api_response_webhook.rb +6 -6
- data/lib/sentdm/models/brands_brand_data.rb +6 -6
- data/lib/sentdm/models/contact_delete_params.rb +1 -1
- data/lib/sentdm/models/contact_list_response.rb +11 -11
- data/lib/sentdm/models/{api_error.rb → error_detail.rb} +1 -1
- data/lib/sentdm/models/me_retrieve_response.rb +37 -23
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -9
- data/lib/sentdm/models/message_retrieve_status_response.rb +9 -9
- data/lib/sentdm/models/message_send_params.rb +5 -3
- data/lib/sentdm/models/message_send_response.rb +9 -9
- data/lib/sentdm/models/{mutation_request_base.rb → mutation_request.rb} +2 -2
- data/lib/sentdm/models/number_lookup_response.rb +6 -6
- 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 +9 -9
- data/lib/sentdm/models/profile_update_params.rb +9 -13
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +6 -6
- 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_delete_params.rb +1 -1
- data/lib/sentdm/models/profiles/campaign_list_response.rb +6 -6
- 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 +1 -2
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +2 -2
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +1 -4
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +2 -4
- data/lib/sentdm/models/template_create_params.rb +3 -2
- data/lib/sentdm/models/template_definition.rb +8 -12
- data/lib/sentdm/models/template_list_response.rb +11 -11
- data/lib/sentdm/models/template_update_params.rb +3 -2
- data/lib/sentdm/models/user_list_response.rb +9 -9
- data/lib/sentdm/models/user_remove_params.rb +1 -1
- data/lib/sentdm/models/webhook_list_event_types_response.rb +6 -6
- data/lib/sentdm/models/webhook_list_events_response.rb +6 -6
- data/lib/sentdm/models/webhook_list_response.rb +6 -6
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -6
- data/lib/sentdm/models/webhook_test_response.rb +6 -6
- data/lib/sentdm/models.rb +4 -6
- 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 +5 -5
- data/rbi/sentdm/models/api_response_of_contact.rbi +10 -10
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +10 -10
- data/rbi/sentdm/models/api_response_of_user.rbi +10 -10
- data/rbi/sentdm/models/api_response_template.rbi +10 -10
- data/rbi/sentdm/models/api_response_webhook.rbi +8 -8
- data/rbi/sentdm/models/brands_brand_data.rbi +6 -6
- data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
- data/rbi/sentdm/models/contact_list_response.rbi +13 -13
- data/rbi/sentdm/models/{api_error.rbi → error_detail.rbi} +2 -2
- data/rbi/sentdm/models/me_retrieve_response.rbi +37 -25
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +11 -11
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +11 -11
- data/rbi/sentdm/models/message_send_params.rbi +6 -3
- data/rbi/sentdm/models/message_send_response.rbi +11 -11
- data/rbi/sentdm/models/{mutation_request_base.rbi → mutation_request.rbi} +2 -2
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -8
- 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 +11 -11
- data/rbi/sentdm/models/profile_update_params.rbi +12 -20
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +8 -8
- 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_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +8 -8
- 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 +0 -2
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +2 -2
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -3
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -4
- data/rbi/sentdm/models/template_create_params.rbi +4 -2
- data/rbi/sentdm/models/template_definition.rbi +8 -10
- data/rbi/sentdm/models/template_list_response.rbi +13 -13
- data/rbi/sentdm/models/template_update_params.rbi +4 -2
- data/rbi/sentdm/models/user_list_response.rbi +11 -11
- data/rbi/sentdm/models/user_remove_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +8 -8
- data/rbi/sentdm/models/webhook_list_events_response.rbi +8 -8
- data/rbi/sentdm/models/webhook_list_response.rbi +8 -8
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -8
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -8
- data/rbi/sentdm/models.rbi +4 -6
- 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/api_response_of_contact.rbs +4 -4
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +4 -4
- data/sig/sentdm/models/api_response_of_user.rbs +4 -4
- data/sig/sentdm/models/api_response_template.rbs +4 -4
- data/sig/sentdm/models/api_response_webhook.rbs +4 -4
- data/sig/sentdm/models/contact_delete_params.rbs +1 -1
- data/sig/sentdm/models/contact_list_response.rbs +4 -4
- data/sig/sentdm/models/{api_error.rbs → error_detail.rbs} +2 -2
- data/sig/sentdm/models/me_retrieve_response.rbs +4 -4
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +4 -4
- data/sig/sentdm/models/message_retrieve_status_response.rbs +4 -4
- data/sig/sentdm/models/message_send_response.rbs +4 -4
- data/sig/sentdm/models/{mutation_request_base.rbs → mutation_request.rbs} +2 -2
- data/sig/sentdm/models/number_lookup_response.rbs +4 -4
- 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/profile_list_response.rbs +4 -4
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +4 -4
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +1 -1
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +4 -4
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +2 -2
- data/sig/sentdm/models/template_list_response.rbs +4 -4
- data/sig/sentdm/models/user_list_response.rbs +4 -4
- data/sig/sentdm/models/user_remove_params.rbs +1 -1
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +4 -4
- data/sig/sentdm/models/webhook_list_events_response.rbs +4 -4
- data/sig/sentdm/models/webhook_list_response.rbs +4 -4
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +4 -4
- data/sig/sentdm/models/webhook_test_response.rbs +4 -4
- data/sig/sentdm/models.rbs +4 -6
- data/sig/sentdm/resources/profiles.rbs +1 -1
- metadata +17 -17
- 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
|
@@ -54,11 +54,11 @@ module Sentdm
|
|
|
54
54
|
#
|
|
55
55
|
# @param allow_template_sharing [Boolean] Body param: Whether templates are shared across profiles (default: false)
|
|
56
56
|
#
|
|
57
|
-
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for
|
|
57
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
58
58
|
#
|
|
59
59
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (d
|
|
60
60
|
#
|
|
61
|
-
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC
|
|
61
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
62
62
|
#
|
|
63
63
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
64
64
|
#
|
|
@@ -74,13 +74,13 @@ module Sentdm
|
|
|
74
74
|
#
|
|
75
75
|
# @param name [String] Body param: Profile name (required)
|
|
76
76
|
#
|
|
77
|
-
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for
|
|
77
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
|
|
78
78
|
#
|
|
79
79
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
80
80
|
#
|
|
81
81
|
# @param short_name [String, nil] Body param: Profile short name/abbreviation (optional). Must be 3–11 characters,
|
|
82
82
|
#
|
|
83
|
-
# @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for
|
|
83
|
+
# @param whatsapp_business_account [Sentdm::Models::ProfileCreateParams::WhatsappBusinessAccount, nil] Body param: Direct WhatsApp Business Account credentials for a profile.
|
|
84
84
|
#
|
|
85
85
|
# @param idempotency_key [String] Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
86
86
|
#
|
|
@@ -165,11 +165,11 @@ module Sentdm
|
|
|
165
165
|
#
|
|
166
166
|
# @param allow_template_sharing [Boolean, nil] Body param: Whether templates are shared across profiles (optional)
|
|
167
167
|
#
|
|
168
|
-
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact for
|
|
168
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
169
169
|
#
|
|
170
170
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (o
|
|
171
171
|
#
|
|
172
|
-
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC
|
|
172
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
173
173
|
#
|
|
174
174
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
175
175
|
#
|
|
@@ -185,7 +185,7 @@ module Sentdm
|
|
|
185
185
|
#
|
|
186
186
|
# @param name [String, nil] Body param: Profile name (optional)
|
|
187
187
|
#
|
|
188
|
-
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for
|
|
188
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
|
|
189
189
|
#
|
|
190
190
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
191
191
|
#
|
|
@@ -281,7 +281,7 @@ module Sentdm
|
|
|
281
281
|
end
|
|
282
282
|
|
|
283
283
|
# Some parameter documentations has been truncated, see
|
|
284
|
-
# {Sentdm::Models::
|
|
284
|
+
# {Sentdm::Models::ProfileCompleteParams} for more details.
|
|
285
285
|
#
|
|
286
286
|
# Final step in profile compliance workflow. Validates all prerequisites (general
|
|
287
287
|
# data, brand, campaigns), connects profile to Telnyx/WhatsApp, and sets status
|
|
@@ -302,7 +302,7 @@ module Sentdm
|
|
|
302
302
|
# - If non-TCR with destination country (IsMain=true) → SUBMITTED
|
|
303
303
|
# - Otherwise → COMPLETED
|
|
304
304
|
#
|
|
305
|
-
# @overload
|
|
305
|
+
# @overload complete(profile_id, web_hook_url:, sandbox: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
|
|
306
306
|
#
|
|
307
307
|
# @param profile_id [String] Path param: Profile ID from route
|
|
308
308
|
#
|
|
@@ -318,9 +318,9 @@ module Sentdm
|
|
|
318
318
|
#
|
|
319
319
|
# @return [Object]
|
|
320
320
|
#
|
|
321
|
-
# @see Sentdm::Models::
|
|
322
|
-
def
|
|
323
|
-
parsed, options = Sentdm::
|
|
321
|
+
# @see Sentdm::Models::ProfileCompleteParams
|
|
322
|
+
def complete(profile_id, params)
|
|
323
|
+
parsed, options = Sentdm::ProfileCompleteParams.dump_request(params)
|
|
324
324
|
header_params = {idempotency_key: "idempotency-key", x_profile_id: "x-profile-id"}
|
|
325
325
|
@client.request(
|
|
326
326
|
method: :post,
|
|
@@ -17,7 +17,7 @@ module Sentdm
|
|
|
17
17
|
#
|
|
18
18
|
# @param creation_source [String, nil] Body param: Source of template creation (default: from-api)
|
|
19
19
|
#
|
|
20
|
-
# @param definition [Sentdm::Models::TemplateDefinition] Body param:
|
|
20
|
+
# @param definition [Sentdm::Models::TemplateDefinition] Body param: Complete definition of a message template including header, body, fo
|
|
21
21
|
#
|
|
22
22
|
# @param language [String, nil] Body param: Template language code (e.g., en_US) (optional, auto-detected if not
|
|
23
23
|
#
|
|
@@ -87,7 +87,7 @@ module Sentdm
|
|
|
87
87
|
#
|
|
88
88
|
# @param category [String, nil] Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
89
89
|
#
|
|
90
|
-
# @param definition [Sentdm::Models::TemplateDefinition, nil] Body param:
|
|
90
|
+
# @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Complete definition of a message template including header, body, fo
|
|
91
91
|
#
|
|
92
92
|
# @param language [String, nil] Body param: Template language code (e.g., en_US)
|
|
93
93
|
#
|
data/lib/sentdm/version.rb
CHANGED
data/lib/sentdm.rb
CHANGED
|
@@ -52,9 +52,8 @@ require_relative "sentdm/errors"
|
|
|
52
52
|
require_relative "sentdm/internal/transport/base_client"
|
|
53
53
|
require_relative "sentdm/internal/transport/pooled_net_requester"
|
|
54
54
|
require_relative "sentdm/client"
|
|
55
|
-
require_relative "sentdm/models/
|
|
56
|
-
require_relative "sentdm/models/base_dto"
|
|
57
|
-
require_relative "sentdm/models/api_error"
|
|
55
|
+
require_relative "sentdm/models/mutation_request"
|
|
56
|
+
require_relative "sentdm/models/profiles/base_dto"
|
|
58
57
|
require_relative "sentdm/models/api_meta"
|
|
59
58
|
require_relative "sentdm/models/api_response_of_contact"
|
|
60
59
|
require_relative "sentdm/models/api_response_of_profile_detail"
|
|
@@ -71,6 +70,7 @@ require_relative "sentdm/models/contact_response"
|
|
|
71
70
|
require_relative "sentdm/models/contact_retrieve_params"
|
|
72
71
|
require_relative "sentdm/models/contact_update_params"
|
|
73
72
|
require_relative "sentdm/models/destination_country"
|
|
73
|
+
require_relative "sentdm/models/error_detail"
|
|
74
74
|
require_relative "sentdm/models/me_retrieve_params"
|
|
75
75
|
require_relative "sentdm/models/me_retrieve_response"
|
|
76
76
|
require_relative "sentdm/models/message_retrieve_activities_params"
|
|
@@ -83,8 +83,8 @@ require_relative "sentdm/models/number_lookup_params"
|
|
|
83
83
|
require_relative "sentdm/models/number_lookup_response"
|
|
84
84
|
require_relative "sentdm/models/pagination_meta"
|
|
85
85
|
require_relative "sentdm/models/payment_details"
|
|
86
|
-
require_relative "sentdm/models/
|
|
87
|
-
require_relative "sentdm/models/
|
|
86
|
+
require_relative "sentdm/models/profile_complete_params"
|
|
87
|
+
require_relative "sentdm/models/profile_complete_response"
|
|
88
88
|
require_relative "sentdm/models/profile_create_params"
|
|
89
89
|
require_relative "sentdm/models/profile_delete_params"
|
|
90
90
|
require_relative "sentdm/models/profile_detail"
|
|
@@ -8,21 +8,21 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::APIResponseOfContact, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Contact response for v3 API Uses snake_case for JSON property names
|
|
12
12
|
sig { returns(T.nilable(Sentdm::ContactResponse)) }
|
|
13
13
|
attr_reader :data
|
|
14
14
|
|
|
15
15
|
sig { params(data: T.nilable(Sentdm::ContactResponse::OrHash)).void }
|
|
16
16
|
attr_writer :data
|
|
17
17
|
|
|
18
|
-
# Error
|
|
19
|
-
sig { returns(T.nilable(Sentdm::
|
|
18
|
+
# Error information
|
|
19
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
20
|
attr_reader :error
|
|
21
21
|
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::
|
|
22
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
23
|
attr_writer :error
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Request and response metadata
|
|
26
26
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
27
|
attr_reader :meta
|
|
28
28
|
|
|
@@ -40,17 +40,17 @@ module Sentdm
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
42
|
data: T.nilable(Sentdm::ContactResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::
|
|
43
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
44
|
meta: Sentdm::APIMeta::OrHash,
|
|
45
45
|
success: T::Boolean
|
|
46
46
|
).returns(T.attached_class)
|
|
47
47
|
end
|
|
48
48
|
def self.new(
|
|
49
|
-
#
|
|
49
|
+
# Contact response for v3 API Uses snake_case for JSON property names
|
|
50
50
|
data: nil,
|
|
51
|
-
# Error
|
|
51
|
+
# Error information
|
|
52
52
|
error: nil,
|
|
53
|
-
#
|
|
53
|
+
# Request and response metadata
|
|
54
54
|
meta: nil,
|
|
55
55
|
# Indicates whether the request was successful
|
|
56
56
|
success: nil
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
override.returns(
|
|
62
62
|
{
|
|
63
63
|
data: T.nilable(Sentdm::ContactResponse),
|
|
64
|
-
error: T.nilable(Sentdm::
|
|
64
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
65
|
meta: Sentdm::APIMeta,
|
|
66
66
|
success: T::Boolean
|
|
67
67
|
}
|
|
@@ -8,21 +8,21 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::APIResponseOfProfileDetail, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Detailed profile response for v3 API
|
|
12
12
|
sig { returns(T.nilable(Sentdm::ProfileDetail)) }
|
|
13
13
|
attr_reader :data
|
|
14
14
|
|
|
15
15
|
sig { params(data: T.nilable(Sentdm::ProfileDetail::OrHash)).void }
|
|
16
16
|
attr_writer :data
|
|
17
17
|
|
|
18
|
-
# Error
|
|
19
|
-
sig { returns(T.nilable(Sentdm::
|
|
18
|
+
# Error information
|
|
19
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
20
|
attr_reader :error
|
|
21
21
|
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::
|
|
22
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
23
|
attr_writer :error
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Request and response metadata
|
|
26
26
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
27
|
attr_reader :meta
|
|
28
28
|
|
|
@@ -40,17 +40,17 @@ module Sentdm
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
42
|
data: T.nilable(Sentdm::ProfileDetail::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::
|
|
43
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
44
|
meta: Sentdm::APIMeta::OrHash,
|
|
45
45
|
success: T::Boolean
|
|
46
46
|
).returns(T.attached_class)
|
|
47
47
|
end
|
|
48
48
|
def self.new(
|
|
49
|
-
#
|
|
49
|
+
# Detailed profile response for v3 API
|
|
50
50
|
data: nil,
|
|
51
|
-
# Error
|
|
51
|
+
# Error information
|
|
52
52
|
error: nil,
|
|
53
|
-
#
|
|
53
|
+
# Request and response metadata
|
|
54
54
|
meta: nil,
|
|
55
55
|
# Indicates whether the request was successful
|
|
56
56
|
success: nil
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
override.returns(
|
|
62
62
|
{
|
|
63
63
|
data: T.nilable(Sentdm::ProfileDetail),
|
|
64
|
-
error: T.nilable(Sentdm::
|
|
64
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
65
|
meta: Sentdm::APIMeta,
|
|
66
66
|
success: T::Boolean
|
|
67
67
|
}
|
|
@@ -8,21 +8,21 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::APIResponseOfUser, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# User response for v3 API
|
|
12
12
|
sig { returns(T.nilable(Sentdm::UserResponse)) }
|
|
13
13
|
attr_reader :data
|
|
14
14
|
|
|
15
15
|
sig { params(data: T.nilable(Sentdm::UserResponse::OrHash)).void }
|
|
16
16
|
attr_writer :data
|
|
17
17
|
|
|
18
|
-
# Error
|
|
19
|
-
sig { returns(T.nilable(Sentdm::
|
|
18
|
+
# Error information
|
|
19
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
20
|
attr_reader :error
|
|
21
21
|
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::
|
|
22
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
23
|
attr_writer :error
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Request and response metadata
|
|
26
26
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
27
|
attr_reader :meta
|
|
28
28
|
|
|
@@ -40,17 +40,17 @@ module Sentdm
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
42
|
data: T.nilable(Sentdm::UserResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::
|
|
43
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
44
|
meta: Sentdm::APIMeta::OrHash,
|
|
45
45
|
success: T::Boolean
|
|
46
46
|
).returns(T.attached_class)
|
|
47
47
|
end
|
|
48
48
|
def self.new(
|
|
49
|
-
#
|
|
49
|
+
# User response for v3 API
|
|
50
50
|
data: nil,
|
|
51
|
-
# Error
|
|
51
|
+
# Error information
|
|
52
52
|
error: nil,
|
|
53
|
-
#
|
|
53
|
+
# Request and response metadata
|
|
54
54
|
meta: nil,
|
|
55
55
|
# Indicates whether the request was successful
|
|
56
56
|
success: nil
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
override.returns(
|
|
62
62
|
{
|
|
63
63
|
data: T.nilable(Sentdm::UserResponse),
|
|
64
|
-
error: T.nilable(Sentdm::
|
|
64
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
65
|
meta: Sentdm::APIMeta,
|
|
66
66
|
success: T::Boolean
|
|
67
67
|
}
|
|
@@ -8,21 +8,21 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::APIResponseTemplate, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Template response for v3 API
|
|
12
12
|
sig { returns(T.nilable(Sentdm::Template)) }
|
|
13
13
|
attr_reader :data
|
|
14
14
|
|
|
15
15
|
sig { params(data: T.nilable(Sentdm::Template::OrHash)).void }
|
|
16
16
|
attr_writer :data
|
|
17
17
|
|
|
18
|
-
# Error
|
|
19
|
-
sig { returns(T.nilable(Sentdm::
|
|
18
|
+
# Error information
|
|
19
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
20
|
attr_reader :error
|
|
21
21
|
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::
|
|
22
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
23
|
attr_writer :error
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Request and response metadata
|
|
26
26
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
27
|
attr_reader :meta
|
|
28
28
|
|
|
@@ -40,17 +40,17 @@ module Sentdm
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
42
|
data: T.nilable(Sentdm::Template::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::
|
|
43
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
44
|
meta: Sentdm::APIMeta::OrHash,
|
|
45
45
|
success: T::Boolean
|
|
46
46
|
).returns(T.attached_class)
|
|
47
47
|
end
|
|
48
48
|
def self.new(
|
|
49
|
-
#
|
|
49
|
+
# Template response for v3 API
|
|
50
50
|
data: nil,
|
|
51
|
-
# Error
|
|
51
|
+
# Error information
|
|
52
52
|
error: nil,
|
|
53
|
-
#
|
|
53
|
+
# Request and response metadata
|
|
54
54
|
meta: nil,
|
|
55
55
|
# Indicates whether the request was successful
|
|
56
56
|
success: nil
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
override.returns(
|
|
62
62
|
{
|
|
63
63
|
data: T.nilable(Sentdm::Template),
|
|
64
|
-
error: T.nilable(Sentdm::
|
|
64
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
65
|
meta: Sentdm::APIMeta,
|
|
66
66
|
success: T::Boolean
|
|
67
67
|
}
|
|
@@ -15,14 +15,14 @@ module Sentdm
|
|
|
15
15
|
sig { params(data: T.nilable(Sentdm::WebhookResponse::OrHash)).void }
|
|
16
16
|
attr_writer :data
|
|
17
17
|
|
|
18
|
-
# Error
|
|
19
|
-
sig { returns(T.nilable(Sentdm::
|
|
18
|
+
# Error information
|
|
19
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
20
20
|
attr_reader :error
|
|
21
21
|
|
|
22
|
-
sig { params(error: T.nilable(Sentdm::
|
|
22
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
|
|
23
23
|
attr_writer :error
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
# Request and response metadata
|
|
26
26
|
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
27
27
|
attr_reader :meta
|
|
28
28
|
|
|
@@ -40,7 +40,7 @@ module Sentdm
|
|
|
40
40
|
sig do
|
|
41
41
|
params(
|
|
42
42
|
data: T.nilable(Sentdm::WebhookResponse::OrHash),
|
|
43
|
-
error: T.nilable(Sentdm::
|
|
43
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
44
44
|
meta: Sentdm::APIMeta::OrHash,
|
|
45
45
|
success: T::Boolean
|
|
46
46
|
).returns(T.attached_class)
|
|
@@ -48,9 +48,9 @@ module Sentdm
|
|
|
48
48
|
def self.new(
|
|
49
49
|
# The response data (null if error)
|
|
50
50
|
data: nil,
|
|
51
|
-
# Error
|
|
51
|
+
# Error information
|
|
52
52
|
error: nil,
|
|
53
|
-
#
|
|
53
|
+
# Request and response metadata
|
|
54
54
|
meta: nil,
|
|
55
55
|
# Indicates whether the request was successful
|
|
56
56
|
success: nil
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
override.returns(
|
|
62
62
|
{
|
|
63
63
|
data: T.nilable(Sentdm::WebhookResponse),
|
|
64
|
-
error: T.nilable(Sentdm::
|
|
64
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
65
65
|
meta: Sentdm::APIMeta,
|
|
66
66
|
success: T::Boolean
|
|
67
67
|
}
|
|
@@ -8,7 +8,7 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::BrandsBrandData, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
# Compliance and TCR
|
|
11
|
+
# Compliance and TCR information for brand registration
|
|
12
12
|
sig do
|
|
13
13
|
returns(
|
|
14
14
|
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
@@ -24,7 +24,7 @@ module Sentdm
|
|
|
24
24
|
end
|
|
25
25
|
attr_writer :compliance
|
|
26
26
|
|
|
27
|
-
# Contact information for
|
|
27
|
+
# Contact information for brand KYC
|
|
28
28
|
sig do
|
|
29
29
|
returns(
|
|
30
30
|
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
@@ -40,7 +40,7 @@ module Sentdm
|
|
|
40
40
|
end
|
|
41
41
|
attr_writer :contact
|
|
42
42
|
|
|
43
|
-
# Business details and address
|
|
43
|
+
# Business details and address for brand KYC
|
|
44
44
|
sig do
|
|
45
45
|
returns(
|
|
46
46
|
T.nilable(
|
|
@@ -74,11 +74,11 @@ module Sentdm
|
|
|
74
74
|
).returns(T.attached_class)
|
|
75
75
|
end
|
|
76
76
|
def self.new(
|
|
77
|
-
# Compliance and TCR
|
|
77
|
+
# Compliance and TCR information for brand registration
|
|
78
78
|
compliance:,
|
|
79
|
-
# Contact information for
|
|
79
|
+
# Contact information for brand KYC
|
|
80
80
|
contact:,
|
|
81
|
-
# Business details and address
|
|
81
|
+
# Business details and address for brand KYC
|
|
82
82
|
business: nil
|
|
83
83
|
)
|
|
84
84
|
end
|
|
@@ -8,7 +8,7 @@ module Sentdm
|
|
|
8
8
|
T.any(Sentdm::Models::ContactListResponse, Sentdm::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Paginated list of contacts response
|
|
12
12
|
sig { returns(T.nilable(Sentdm::Models::ContactListResponse::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
|
|
23
|
-
sig { returns(T.nilable(Sentdm::
|
|
22
|
+
# Error information
|
|
23
|
+
sig { returns(T.nilable(Sentdm::ErrorDetail)) }
|
|
24
24
|
attr_reader :error
|
|
25
25
|
|
|
26
|
-
sig { params(error: T.nilable(Sentdm::
|
|
26
|
+
sig { params(error: T.nilable(Sentdm::ErrorDetail::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
|
|
|
@@ -44,17 +44,17 @@ module Sentdm
|
|
|
44
44
|
sig do
|
|
45
45
|
params(
|
|
46
46
|
data: T.nilable(Sentdm::Models::ContactListResponse::Data::OrHash),
|
|
47
|
-
error: T.nilable(Sentdm::
|
|
47
|
+
error: T.nilable(Sentdm::ErrorDetail::OrHash),
|
|
48
48
|
meta: Sentdm::APIMeta::OrHash,
|
|
49
49
|
success: T::Boolean
|
|
50
50
|
).returns(T.attached_class)
|
|
51
51
|
end
|
|
52
52
|
def self.new(
|
|
53
|
-
#
|
|
53
|
+
# Paginated list of contacts 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
|
|
@@ -65,7 +65,7 @@ module Sentdm
|
|
|
65
65
|
override.returns(
|
|
66
66
|
{
|
|
67
67
|
data: T.nilable(Sentdm::Models::ContactListResponse::Data),
|
|
68
|
-
error: T.nilable(Sentdm::
|
|
68
|
+
error: T.nilable(Sentdm::ErrorDetail),
|
|
69
69
|
meta: Sentdm::APIMeta,
|
|
70
70
|
success: T::Boolean
|
|
71
71
|
}
|
|
@@ -90,14 +90,14 @@ module Sentdm
|
|
|
90
90
|
sig { params(contacts: T::Array[Sentdm::ContactResponse::OrHash]).void }
|
|
91
91
|
attr_writer :contacts
|
|
92
92
|
|
|
93
|
-
# Pagination metadata
|
|
93
|
+
# Pagination metadata for list responses
|
|
94
94
|
sig { returns(T.nilable(Sentdm::PaginationMeta)) }
|
|
95
95
|
attr_reader :pagination
|
|
96
96
|
|
|
97
97
|
sig { params(pagination: Sentdm::PaginationMeta::OrHash).void }
|
|
98
98
|
attr_writer :pagination
|
|
99
99
|
|
|
100
|
-
#
|
|
100
|
+
# Paginated list of contacts response
|
|
101
101
|
sig do
|
|
102
102
|
params(
|
|
103
103
|
contacts: T::Array[Sentdm::ContactResponse::OrHash],
|
|
@@ -107,7 +107,7 @@ module Sentdm
|
|
|
107
107
|
def self.new(
|
|
108
108
|
# List of contacts
|
|
109
109
|
contacts: nil,
|
|
110
|
-
# Pagination metadata
|
|
110
|
+
# Pagination metadata for list responses
|
|
111
111
|
pagination: nil
|
|
112
112
|
)
|
|
113
113
|
end
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class ErrorDetail < Sentdm::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
|
-
T.type_alias { T.any(Sentdm::
|
|
7
|
+
T.type_alias { T.any(Sentdm::ErrorDetail, Sentdm::Internal::AnyHash) }
|
|
8
8
|
|
|
9
9
|
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
10
10
|
sig { returns(T.nilable(String)) }
|