sentdm 0.19.0 → 0.20.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 +31 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -278
- data/lib/sentdm/models/contact_response.rb +126 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -204
- data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -423
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +605 -0
- data/lib/sentdm/models/profile_list_response.rb +9 -753
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -423
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/profiles/base_dto.rb +32 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
- data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
- 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 +248 -0
- 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 +48 -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/tcr_brand_relationship.rb +18 -0
- data/lib/sentdm/models/tcr_vertical.rb +36 -0
- data/lib/sentdm/models/template.rb +90 -0
- data/lib/sentdm/models/template_body_content.rb +27 -0
- data/lib/sentdm/models/template_create_params.rb +3 -889
- data/lib/sentdm/models/template_definition.rb +66 -0
- data/lib/sentdm/models/template_list_response.rb +12 -242
- data/lib/sentdm/models/template_update_params.rb +3 -889
- data/lib/sentdm/models/template_variable.rb +80 -0
- data/lib/sentdm/models/user_list_response.rb +9 -154
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
- data/lib/sentdm/models/webhook_list_response.rb +12 -247
- data/lib/sentdm/models/webhook_response.rb +95 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +77 -0
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +8 -8
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +40 -18
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -505
- data/rbi/sentdm/models/contact_response.rbi +183 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -810
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +874 -0
- data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -810
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
- 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 +425 -0
- 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 +87 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -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 +57 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -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/tcr_brand_relationship.rbi +30 -0
- data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
- data/rbi/sentdm/models/template.rbi +129 -0
- data/rbi/sentdm/models/template_body_content.rbi +43 -0
- data/rbi/sentdm/models/template_create_params.rbi +4 -1701
- data/rbi/sentdm/models/template_definition.rbi +164 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -454
- data/rbi/sentdm/models/template_update_params.rbi +4 -1701
- data/rbi/sentdm/models/template_variable.rbi +120 -0
- data/rbi/sentdm/models/user_list_response.rbi +14 -271
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
- data/rbi/sentdm/models/webhook_response.rbi +140 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +77 -0
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +5 -6
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -256
- data/sig/sentdm/models/contact_response.rbs +111 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -363
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +474 -0
- data/sig/sentdm/models/profile_list_response.rbs +15 -645
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -363
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
- data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
- 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 +299 -0
- 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 +35 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -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 +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -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/tcr_brand_relationship.rbs +22 -0
- data/sig/sentdm/models/tcr_vertical.rbs +58 -0
- data/sig/sentdm/models/template.rbs +79 -0
- data/sig/sentdm/models/template_body_content.rbs +30 -0
- data/sig/sentdm/models/template_create_params.rbs +6 -853
- data/sig/sentdm/models/template_definition.rbs +45 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -225
- data/sig/sentdm/models/template_update_params.rbs +4 -851
- data/sig/sentdm/models/template_variable.rbs +84 -0
- data/sig/sentdm/models/user_list_response.rbs +15 -151
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -248
- data/sig/sentdm/models/webhook_response.rbs +103 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +68 -0
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +5 -5
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +121 -55
- data/lib/sentdm/models/contact_create_response.rb +0 -236
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
- data/lib/sentdm/models/contact_update_response.rb +0 -236
- data/lib/sentdm/models/profile_create_response.rb +0 -781
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
- data/lib/sentdm/models/profile_update_response.rb +0 -781
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
- data/lib/sentdm/models/template_create_response.rb +0 -197
- data/lib/sentdm/models/template_retrieve_response.rb +0 -197
- data/lib/sentdm/models/template_update_response.rb +0 -197
- data/lib/sentdm/models/user_invite_response.rb +0 -189
- data/lib/sentdm/models/user_retrieve_response.rb +0 -189
- data/lib/sentdm/models/user_update_role_response.rb +0 -189
- data/lib/sentdm/models/webhook_create_response.rb +0 -204
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
- data/lib/sentdm/models/webhook_update_response.rb +0 -204
- data/rbi/sentdm/models/contact_create_response.rbi +0 -390
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
- data/rbi/sentdm/models/contact_update_response.rbi +0 -390
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
- data/rbi/sentdm/models/template_create_response.rbi +0 -339
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
- data/rbi/sentdm/models/template_update_response.rbi +0 -339
- data/rbi/sentdm/models/user_invite_response.rbi +0 -323
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
- data/sig/sentdm/models/contact_create_response.rbs +0 -209
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
- data/sig/sentdm/models/contact_update_response.rbs +0 -209
- data/sig/sentdm/models/profile_create_response.rbs +0 -662
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
- data/sig/sentdm/models/profile_update_response.rbs +0 -662
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
- data/sig/sentdm/models/template_create_response.rbs +0 -177
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/template_update_response.rbs +0 -177
- data/sig/sentdm/models/user_invite_response.rbs +0 -170
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
- data/sig/sentdm/models/user_update_role_response.rbs +0 -170
- data/sig/sentdm/models/webhook_create_response.rbs +0 -201
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
- data/sig/sentdm/models/webhook_update_response.rbs +0 -201
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Contacts#retrieve
|
|
6
|
-
class ContactRetrieveResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::ContactRetrieveResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Sentdm::Models::ContactRetrieveResponse::Data }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ContactRetrieveResponse::Error, nil]
|
|
17
|
-
optional :error, -> { Sentdm::Models::ContactRetrieveResponse::Error }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::ContactRetrieveResponse::Meta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::Models::ContactRetrieveResponse::Meta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {Sentdm::Models::ContactRetrieveResponse} for more details.
|
|
34
|
-
#
|
|
35
|
-
# Standard API response envelope for all v3 endpoints
|
|
36
|
-
#
|
|
37
|
-
# @param data [Sentdm::Models::ContactRetrieveResponse::Data, nil] Contact response for v3 API
|
|
38
|
-
#
|
|
39
|
-
# @param error [Sentdm::Models::ContactRetrieveResponse::Error, nil] Error information
|
|
40
|
-
#
|
|
41
|
-
# @param meta [Sentdm::Models::ContactRetrieveResponse::Meta] Request and response metadata
|
|
42
|
-
#
|
|
43
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
44
|
-
|
|
45
|
-
# @see Sentdm::Models::ContactRetrieveResponse#data
|
|
46
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
47
|
-
# @!attribute id
|
|
48
|
-
# Unique identifier for the contact
|
|
49
|
-
#
|
|
50
|
-
# @return [String, nil]
|
|
51
|
-
optional :id, String
|
|
52
|
-
|
|
53
|
-
# @!attribute available_channels
|
|
54
|
-
# Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
55
|
-
#
|
|
56
|
-
# @return [String, nil]
|
|
57
|
-
optional :available_channels, String
|
|
58
|
-
|
|
59
|
-
# @!attribute country_code
|
|
60
|
-
# Country calling code (e.g., 1 for US/Canada)
|
|
61
|
-
#
|
|
62
|
-
# @return [String, nil]
|
|
63
|
-
optional :country_code, String
|
|
64
|
-
|
|
65
|
-
# @!attribute created_at
|
|
66
|
-
# When the contact was created
|
|
67
|
-
#
|
|
68
|
-
# @return [Time, nil]
|
|
69
|
-
optional :created_at, Time
|
|
70
|
-
|
|
71
|
-
# @!attribute default_channel
|
|
72
|
-
# Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
73
|
-
#
|
|
74
|
-
# @return [String, nil]
|
|
75
|
-
optional :default_channel, String
|
|
76
|
-
|
|
77
|
-
# @!attribute format_e164
|
|
78
|
-
# Phone number in E.164 format (e.g., +1234567890)
|
|
79
|
-
#
|
|
80
|
-
# @return [String, nil]
|
|
81
|
-
optional :format_e164, String
|
|
82
|
-
|
|
83
|
-
# @!attribute format_international
|
|
84
|
-
# Phone number in international format (e.g., +1 234-567-890)
|
|
85
|
-
#
|
|
86
|
-
# @return [String, nil]
|
|
87
|
-
optional :format_international, String
|
|
88
|
-
|
|
89
|
-
# @!attribute format_national
|
|
90
|
-
# Phone number in national format (e.g., (234) 567-890)
|
|
91
|
-
#
|
|
92
|
-
# @return [String, nil]
|
|
93
|
-
optional :format_national, String
|
|
94
|
-
|
|
95
|
-
# @!attribute format_rfc
|
|
96
|
-
# Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
97
|
-
#
|
|
98
|
-
# @return [String, nil]
|
|
99
|
-
optional :format_rfc, String
|
|
100
|
-
|
|
101
|
-
# @!attribute is_inherited
|
|
102
|
-
# Whether this is an inherited contact (read-only)
|
|
103
|
-
#
|
|
104
|
-
# @return [Boolean, nil]
|
|
105
|
-
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
106
|
-
|
|
107
|
-
# @!attribute opt_out
|
|
108
|
-
# Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
109
|
-
# is per-contact, not per-channel.
|
|
110
|
-
#
|
|
111
|
-
# @return [Boolean, nil]
|
|
112
|
-
optional :opt_out, Sentdm::Internal::Type::Boolean
|
|
113
|
-
|
|
114
|
-
# @!attribute phone_number
|
|
115
|
-
# Phone number in original format
|
|
116
|
-
#
|
|
117
|
-
# @return [String, nil]
|
|
118
|
-
optional :phone_number, String
|
|
119
|
-
|
|
120
|
-
# @!attribute region_code
|
|
121
|
-
# ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
122
|
-
#
|
|
123
|
-
# @return [String, nil]
|
|
124
|
-
optional :region_code, String
|
|
125
|
-
|
|
126
|
-
# @!attribute updated_at
|
|
127
|
-
# When the contact was last updated
|
|
128
|
-
#
|
|
129
|
-
# @return [Time, nil]
|
|
130
|
-
optional :updated_at, Time, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!method initialize(id: nil, available_channels: nil, country_code: nil, created_at: nil, default_channel: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, is_inherited: nil, opt_out: nil, phone_number: nil, region_code: nil, updated_at: nil)
|
|
133
|
-
# Some parameter documentations has been truncated, see
|
|
134
|
-
# {Sentdm::Models::ContactRetrieveResponse::Data} for more details.
|
|
135
|
-
#
|
|
136
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
137
|
-
#
|
|
138
|
-
# @param id [String] Unique identifier for the contact
|
|
139
|
-
#
|
|
140
|
-
# @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
141
|
-
#
|
|
142
|
-
# @param country_code [String] Country calling code (e.g., 1 for US/Canada)
|
|
143
|
-
#
|
|
144
|
-
# @param created_at [Time] When the contact was created
|
|
145
|
-
#
|
|
146
|
-
# @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
147
|
-
#
|
|
148
|
-
# @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
|
|
149
|
-
#
|
|
150
|
-
# @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
|
|
151
|
-
#
|
|
152
|
-
# @param format_national [String] Phone number in national format (e.g., (234) 567-890)
|
|
153
|
-
#
|
|
154
|
-
# @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
155
|
-
#
|
|
156
|
-
# @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
|
|
157
|
-
#
|
|
158
|
-
# @param opt_out [Boolean] Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
159
|
-
#
|
|
160
|
-
# @param phone_number [String] Phone number in original format
|
|
161
|
-
#
|
|
162
|
-
# @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
163
|
-
#
|
|
164
|
-
# @param updated_at [Time, nil] When the contact was last updated
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# @see Sentdm::Models::ContactRetrieveResponse#error
|
|
168
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
169
|
-
# @!attribute code
|
|
170
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
171
|
-
#
|
|
172
|
-
# @return [String, nil]
|
|
173
|
-
optional :code, String
|
|
174
|
-
|
|
175
|
-
# @!attribute details
|
|
176
|
-
# Additional validation error details (field-level errors)
|
|
177
|
-
#
|
|
178
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
179
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
180
|
-
|
|
181
|
-
# @!attribute doc_url
|
|
182
|
-
# URL to documentation about this error
|
|
183
|
-
#
|
|
184
|
-
# @return [String, nil]
|
|
185
|
-
optional :doc_url, String, nil?: true
|
|
186
|
-
|
|
187
|
-
# @!attribute message
|
|
188
|
-
# Human-readable error message
|
|
189
|
-
#
|
|
190
|
-
# @return [String, nil]
|
|
191
|
-
optional :message, String
|
|
192
|
-
|
|
193
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
194
|
-
# Error information
|
|
195
|
-
#
|
|
196
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
197
|
-
#
|
|
198
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
199
|
-
#
|
|
200
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
201
|
-
#
|
|
202
|
-
# @param message [String] Human-readable error message
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# @see Sentdm::Models::ContactRetrieveResponse#meta
|
|
206
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
207
|
-
# @!attribute request_id
|
|
208
|
-
# Unique identifier for this request (for tracing and support)
|
|
209
|
-
#
|
|
210
|
-
# @return [String, nil]
|
|
211
|
-
optional :request_id, String
|
|
212
|
-
|
|
213
|
-
# @!attribute timestamp
|
|
214
|
-
# Server timestamp when the response was generated
|
|
215
|
-
#
|
|
216
|
-
# @return [Time, nil]
|
|
217
|
-
optional :timestamp, Time
|
|
218
|
-
|
|
219
|
-
# @!attribute version
|
|
220
|
-
# API version used for this request
|
|
221
|
-
#
|
|
222
|
-
# @return [String, nil]
|
|
223
|
-
optional :version, String
|
|
224
|
-
|
|
225
|
-
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
226
|
-
# Request and response metadata
|
|
227
|
-
#
|
|
228
|
-
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
229
|
-
#
|
|
230
|
-
# @param timestamp [Time] Server timestamp when the response was generated
|
|
231
|
-
#
|
|
232
|
-
# @param version [String] API version used for this request
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
end
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Contacts#update
|
|
6
|
-
class ContactUpdateResponse < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::ContactUpdateResponse::Data, nil]
|
|
11
|
-
optional :data, -> { Sentdm::Models::ContactUpdateResponse::Data }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ContactUpdateResponse::Error, nil]
|
|
17
|
-
optional :error, -> { Sentdm::Models::ContactUpdateResponse::Error }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::ContactUpdateResponse::Meta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::Models::ContactUpdateResponse::Meta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {Sentdm::Models::ContactUpdateResponse} for more details.
|
|
34
|
-
#
|
|
35
|
-
# Standard API response envelope for all v3 endpoints
|
|
36
|
-
#
|
|
37
|
-
# @param data [Sentdm::Models::ContactUpdateResponse::Data, nil] Contact response for v3 API
|
|
38
|
-
#
|
|
39
|
-
# @param error [Sentdm::Models::ContactUpdateResponse::Error, nil] Error information
|
|
40
|
-
#
|
|
41
|
-
# @param meta [Sentdm::Models::ContactUpdateResponse::Meta] Request and response metadata
|
|
42
|
-
#
|
|
43
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
44
|
-
|
|
45
|
-
# @see Sentdm::Models::ContactUpdateResponse#data
|
|
46
|
-
class Data < Sentdm::Internal::Type::BaseModel
|
|
47
|
-
# @!attribute id
|
|
48
|
-
# Unique identifier for the contact
|
|
49
|
-
#
|
|
50
|
-
# @return [String, nil]
|
|
51
|
-
optional :id, String
|
|
52
|
-
|
|
53
|
-
# @!attribute available_channels
|
|
54
|
-
# Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
55
|
-
#
|
|
56
|
-
# @return [String, nil]
|
|
57
|
-
optional :available_channels, String
|
|
58
|
-
|
|
59
|
-
# @!attribute country_code
|
|
60
|
-
# Country calling code (e.g., 1 for US/Canada)
|
|
61
|
-
#
|
|
62
|
-
# @return [String, nil]
|
|
63
|
-
optional :country_code, String
|
|
64
|
-
|
|
65
|
-
# @!attribute created_at
|
|
66
|
-
# When the contact was created
|
|
67
|
-
#
|
|
68
|
-
# @return [Time, nil]
|
|
69
|
-
optional :created_at, Time
|
|
70
|
-
|
|
71
|
-
# @!attribute default_channel
|
|
72
|
-
# Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
73
|
-
#
|
|
74
|
-
# @return [String, nil]
|
|
75
|
-
optional :default_channel, String
|
|
76
|
-
|
|
77
|
-
# @!attribute format_e164
|
|
78
|
-
# Phone number in E.164 format (e.g., +1234567890)
|
|
79
|
-
#
|
|
80
|
-
# @return [String, nil]
|
|
81
|
-
optional :format_e164, String
|
|
82
|
-
|
|
83
|
-
# @!attribute format_international
|
|
84
|
-
# Phone number in international format (e.g., +1 234-567-890)
|
|
85
|
-
#
|
|
86
|
-
# @return [String, nil]
|
|
87
|
-
optional :format_international, String
|
|
88
|
-
|
|
89
|
-
# @!attribute format_national
|
|
90
|
-
# Phone number in national format (e.g., (234) 567-890)
|
|
91
|
-
#
|
|
92
|
-
# @return [String, nil]
|
|
93
|
-
optional :format_national, String
|
|
94
|
-
|
|
95
|
-
# @!attribute format_rfc
|
|
96
|
-
# Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
97
|
-
#
|
|
98
|
-
# @return [String, nil]
|
|
99
|
-
optional :format_rfc, String
|
|
100
|
-
|
|
101
|
-
# @!attribute is_inherited
|
|
102
|
-
# Whether this is an inherited contact (read-only)
|
|
103
|
-
#
|
|
104
|
-
# @return [Boolean, nil]
|
|
105
|
-
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
106
|
-
|
|
107
|
-
# @!attribute opt_out
|
|
108
|
-
# Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
109
|
-
# is per-contact, not per-channel.
|
|
110
|
-
#
|
|
111
|
-
# @return [Boolean, nil]
|
|
112
|
-
optional :opt_out, Sentdm::Internal::Type::Boolean
|
|
113
|
-
|
|
114
|
-
# @!attribute phone_number
|
|
115
|
-
# Phone number in original format
|
|
116
|
-
#
|
|
117
|
-
# @return [String, nil]
|
|
118
|
-
optional :phone_number, String
|
|
119
|
-
|
|
120
|
-
# @!attribute region_code
|
|
121
|
-
# ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
122
|
-
#
|
|
123
|
-
# @return [String, nil]
|
|
124
|
-
optional :region_code, String
|
|
125
|
-
|
|
126
|
-
# @!attribute updated_at
|
|
127
|
-
# When the contact was last updated
|
|
128
|
-
#
|
|
129
|
-
# @return [Time, nil]
|
|
130
|
-
optional :updated_at, Time, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!method initialize(id: nil, available_channels: nil, country_code: nil, created_at: nil, default_channel: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, is_inherited: nil, opt_out: nil, phone_number: nil, region_code: nil, updated_at: nil)
|
|
133
|
-
# Some parameter documentations has been truncated, see
|
|
134
|
-
# {Sentdm::Models::ContactUpdateResponse::Data} for more details.
|
|
135
|
-
#
|
|
136
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
137
|
-
#
|
|
138
|
-
# @param id [String] Unique identifier for the contact
|
|
139
|
-
#
|
|
140
|
-
# @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
141
|
-
#
|
|
142
|
-
# @param country_code [String] Country calling code (e.g., 1 for US/Canada)
|
|
143
|
-
#
|
|
144
|
-
# @param created_at [Time] When the contact was created
|
|
145
|
-
#
|
|
146
|
-
# @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
147
|
-
#
|
|
148
|
-
# @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
|
|
149
|
-
#
|
|
150
|
-
# @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
|
|
151
|
-
#
|
|
152
|
-
# @param format_national [String] Phone number in national format (e.g., (234) 567-890)
|
|
153
|
-
#
|
|
154
|
-
# @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
155
|
-
#
|
|
156
|
-
# @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
|
|
157
|
-
#
|
|
158
|
-
# @param opt_out [Boolean] Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
159
|
-
#
|
|
160
|
-
# @param phone_number [String] Phone number in original format
|
|
161
|
-
#
|
|
162
|
-
# @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
163
|
-
#
|
|
164
|
-
# @param updated_at [Time, nil] When the contact was last updated
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# @see Sentdm::Models::ContactUpdateResponse#error
|
|
168
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
169
|
-
# @!attribute code
|
|
170
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
171
|
-
#
|
|
172
|
-
# @return [String, nil]
|
|
173
|
-
optional :code, String
|
|
174
|
-
|
|
175
|
-
# @!attribute details
|
|
176
|
-
# Additional validation error details (field-level errors)
|
|
177
|
-
#
|
|
178
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
179
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
180
|
-
|
|
181
|
-
# @!attribute doc_url
|
|
182
|
-
# URL to documentation about this error
|
|
183
|
-
#
|
|
184
|
-
# @return [String, nil]
|
|
185
|
-
optional :doc_url, String, nil?: true
|
|
186
|
-
|
|
187
|
-
# @!attribute message
|
|
188
|
-
# Human-readable error message
|
|
189
|
-
#
|
|
190
|
-
# @return [String, nil]
|
|
191
|
-
optional :message, String
|
|
192
|
-
|
|
193
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
194
|
-
# Error information
|
|
195
|
-
#
|
|
196
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
197
|
-
#
|
|
198
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
199
|
-
#
|
|
200
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
201
|
-
#
|
|
202
|
-
# @param message [String] Human-readable error message
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# @see Sentdm::Models::ContactUpdateResponse#meta
|
|
206
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
207
|
-
# @!attribute request_id
|
|
208
|
-
# Unique identifier for this request (for tracing and support)
|
|
209
|
-
#
|
|
210
|
-
# @return [String, nil]
|
|
211
|
-
optional :request_id, String
|
|
212
|
-
|
|
213
|
-
# @!attribute timestamp
|
|
214
|
-
# Server timestamp when the response was generated
|
|
215
|
-
#
|
|
216
|
-
# @return [Time, nil]
|
|
217
|
-
optional :timestamp, Time
|
|
218
|
-
|
|
219
|
-
# @!attribute version
|
|
220
|
-
# API version used for this request
|
|
221
|
-
#
|
|
222
|
-
# @return [String, nil]
|
|
223
|
-
optional :version, String
|
|
224
|
-
|
|
225
|
-
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
226
|
-
# Request and response metadata
|
|
227
|
-
#
|
|
228
|
-
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
229
|
-
#
|
|
230
|
-
# @param timestamp [Time] Server timestamp when the response was generated
|
|
231
|
-
#
|
|
232
|
-
# @param version [String] API version used for this request
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
end
|