sentdm 0.18.0 → 0.19.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 +13 -0
- data/README.md +1 -31
- data/lib/sentdm/internal/transport/base_client.rb +2 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +0 -25
- data/lib/sentdm/models/contact_create_response.rb +236 -0
- data/lib/sentdm/models/contact_delete_params.rb +16 -2
- data/lib/sentdm/models/contact_list_response.rb +278 -12
- data/lib/sentdm/models/contact_retrieve_response.rb +236 -0
- data/lib/sentdm/models/contact_update_params.rb +4 -16
- data/lib/sentdm/models/contact_update_response.rb +236 -0
- data/lib/sentdm/models/me_retrieve_response.rb +204 -12
- data/lib/sentdm/models/message_retrieve_activities_response.rb +74 -6
- data/lib/sentdm/models/message_retrieve_status_response.rb +87 -7
- data/lib/sentdm/models/message_send_params.rb +2 -2
- data/lib/sentdm/models/message_send_response.rb +74 -6
- data/lib/sentdm/models/number_lookup_response.rb +74 -6
- data/lib/sentdm/models/profile_complete_response.rb +74 -6
- data/lib/sentdm/models/profile_create_params.rb +423 -9
- data/lib/sentdm/models/profile_create_response.rb +781 -0
- data/lib/sentdm/models/profile_delete_params.rb +16 -2
- data/lib/sentdm/models/profile_list_response.rb +753 -9
- data/lib/sentdm/models/profile_retrieve_response.rb +783 -0
- data/lib/sentdm/models/profile_update_params.rb +423 -9
- data/lib/sentdm/models/profile_update_response.rb +781 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_create_response.rb +459 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
- data/lib/sentdm/models/profiles/campaign_list_response.rb +420 -9
- data/lib/sentdm/models/profiles/campaign_update_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_update_response.rb +459 -0
- data/lib/sentdm/models/template_create_params.rb +889 -3
- data/lib/sentdm/models/template_create_response.rb +197 -0
- data/lib/sentdm/models/template_list_response.rb +242 -12
- data/lib/sentdm/models/template_retrieve_response.rb +197 -0
- data/lib/sentdm/models/template_update_params.rb +889 -3
- data/lib/sentdm/models/template_update_response.rb +197 -0
- data/lib/sentdm/models/user_invite_response.rb +189 -0
- data/lib/sentdm/models/user_list_response.rb +154 -9
- data/lib/sentdm/models/user_remove_params.rb +16 -2
- data/lib/sentdm/models/user_retrieve_response.rb +189 -0
- data/lib/sentdm/models/user_update_role_response.rb +189 -0
- data/lib/sentdm/models/webhook_create_response.rb +204 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +118 -9
- data/lib/sentdm/models/webhook_list_events_response.rb +153 -9
- data/lib/sentdm/models/webhook_list_response.rb +247 -12
- data/lib/sentdm/models/webhook_retrieve_response.rb +204 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
- data/lib/sentdm/models/webhook_test_response.rb +74 -6
- data/lib/sentdm/models/webhook_toggle_status_response.rb +204 -0
- data/lib/sentdm/models/webhook_update_response.rb +204 -0
- data/lib/sentdm/models.rb +0 -77
- data/lib/sentdm/resources/contacts.rb +8 -10
- 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 +18 -40
- data/rbi/sentdm/models/contact_create_response.rbi +390 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
- data/rbi/sentdm/models/contact_list_response.rbi +505 -16
- data/rbi/sentdm/models/contact_retrieve_response.rbi +392 -0
- data/rbi/sentdm/models/contact_update_params.rbi +4 -20
- data/rbi/sentdm/models/contact_update_response.rbi +390 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +335 -16
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +154 -8
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +171 -11
- data/rbi/sentdm/models/message_send_params.rbi +4 -4
- data/rbi/sentdm/models/message_send_response.rbi +135 -8
- data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
- data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
- data/rbi/sentdm/models/profile_create_params.rbi +810 -12
- data/rbi/sentdm/models/profile_create_response.rbi +1439 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
- data/rbi/sentdm/models/profile_list_response.rbi +1400 -14
- data/rbi/sentdm/models/profile_retrieve_response.rbi +1443 -0
- data/rbi/sentdm/models/profile_update_params.rbi +810 -12
- data/rbi/sentdm/models/profile_update_response.rbi +1439 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +814 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +733 -11
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +814 -0
- data/rbi/sentdm/models/template_create_params.rbi +1701 -4
- data/rbi/sentdm/models/template_create_response.rbi +339 -0
- data/rbi/sentdm/models/template_list_response.rbi +454 -16
- data/rbi/sentdm/models/template_retrieve_response.rbi +345 -0
- data/rbi/sentdm/models/template_update_params.rbi +1701 -4
- data/rbi/sentdm/models/template_update_response.rbi +339 -0
- data/rbi/sentdm/models/user_invite_response.rbi +323 -0
- data/rbi/sentdm/models/user_list_response.rbi +271 -14
- data/rbi/sentdm/models/user_remove_params.rbi +19 -2
- data/rbi/sentdm/models/user_retrieve_response.rbi +323 -0
- data/rbi/sentdm/models/user_update_role_response.rbi +328 -0
- data/rbi/sentdm/models/webhook_create_response.rbi +348 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +247 -12
- data/rbi/sentdm/models/webhook_list_events_response.rbi +314 -12
- data/rbi/sentdm/models/webhook_list_response.rbi +462 -16
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +350 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
- data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +366 -0
- data/rbi/sentdm/models/webhook_update_response.rbi +348 -0
- data/rbi/sentdm/models.rbi +0 -77
- data/rbi/sentdm/resources/contacts.rbi +5 -12
- data/rbi/sentdm/resources/messages.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +13 -9
- data/rbi/sentdm/resources/templates.rbi +6 -5
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/contact_create_response.rbs +209 -0
- data/sig/sentdm/models/contact_delete_params.rbs +10 -6
- data/sig/sentdm/models/contact_list_response.rbs +256 -20
- data/sig/sentdm/models/contact_retrieve_response.rbs +209 -0
- data/sig/sentdm/models/contact_update_params.rbs +0 -5
- data/sig/sentdm/models/contact_update_response.rbs +209 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +71 -9
- data/sig/sentdm/models/message_retrieve_status_response.rbs +95 -13
- data/sig/sentdm/models/message_send_response.rbs +71 -9
- data/sig/sentdm/models/number_lookup_response.rbs +71 -9
- data/sig/sentdm/models/profile_complete_response.rbs +71 -9
- data/sig/sentdm/models/profile_create_params.rbs +363 -12
- data/sig/sentdm/models/profile_create_response.rbs +662 -0
- data/sig/sentdm/models/profile_delete_params.rbs +10 -6
- data/sig/sentdm/models/profile_list_response.rbs +645 -15
- data/sig/sentdm/models/profile_retrieve_response.rbs +662 -0
- data/sig/sentdm/models/profile_update_params.rbs +363 -12
- data/sig/sentdm/models/profile_update_response.rbs +662 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +424 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +396 -13
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +424 -0
- data/sig/sentdm/models/template_create_params.rbs +853 -6
- data/sig/sentdm/models/template_create_response.rbs +177 -0
- data/sig/sentdm/models/template_list_response.rbs +225 -19
- data/sig/sentdm/models/template_retrieve_response.rbs +177 -0
- data/sig/sentdm/models/template_update_params.rbs +851 -4
- data/sig/sentdm/models/template_update_response.rbs +177 -0
- data/sig/sentdm/models/user_invite_response.rbs +170 -0
- data/sig/sentdm/models/user_list_response.rbs +151 -15
- data/sig/sentdm/models/user_remove_params.rbs +10 -6
- data/sig/sentdm/models/user_retrieve_response.rbs +170 -0
- data/sig/sentdm/models/user_update_role_response.rbs +170 -0
- data/sig/sentdm/models/webhook_create_response.rbs +201 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +130 -15
- data/sig/sentdm/models/webhook_list_events_response.rbs +142 -14
- data/sig/sentdm/models/webhook_list_response.rbs +248 -20
- data/sig/sentdm/models/webhook_retrieve_response.rbs +201 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
- data/sig/sentdm/models/webhook_test_response.rbs +71 -9
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +201 -0
- data/sig/sentdm/models/webhook_update_response.rbs +201 -0
- data/sig/sentdm/models.rbs +0 -68
- data/sig/sentdm/resources/contacts.rbs +3 -4
- 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 +56 -122
- data/lib/sentdm/models/api_meta.rb +0 -34
- data/lib/sentdm/models/api_response_of_contact.rb +0 -46
- data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
- data/lib/sentdm/models/api_response_of_user.rb +0 -43
- data/lib/sentdm/models/api_response_template.rb +0 -43
- data/lib/sentdm/models/api_response_webhook.rb +0 -43
- data/lib/sentdm/models/billing_contact_info.rb +0 -47
- data/lib/sentdm/models/brands_brand_data.rb +0 -38
- data/lib/sentdm/models/contact_response.rb +0 -136
- data/lib/sentdm/models/destination_country.rb +0 -21
- data/lib/sentdm/models/error_detail.rb +0 -42
- data/lib/sentdm/models/mutation_request.rb +0 -20
- data/lib/sentdm/models/pagination_meta.rb +0 -80
- data/lib/sentdm/models/payment_details.rb +0 -44
- data/lib/sentdm/models/profile_detail.rb +0 -605
- data/lib/sentdm/models/profile_settings.rb +0 -66
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +0 -45
- data/lib/sentdm/models/profiles/base_dto.rb +0 -32
- data/lib/sentdm/models/profiles/campaign_data.rb +0 -123
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +0 -28
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -29
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +0 -236
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +0 -116
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +0 -75
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +0 -58
- data/lib/sentdm/models/tcr_brand_relationship.rb +0 -18
- data/lib/sentdm/models/tcr_vertical.rb +0 -36
- data/lib/sentdm/models/template.rb +0 -90
- data/lib/sentdm/models/template_body_content.rb +0 -27
- data/lib/sentdm/models/template_definition.rb +0 -66
- data/lib/sentdm/models/template_variable.rb +0 -80
- data/lib/sentdm/models/user_response.rb +0 -82
- data/lib/sentdm/models/webhook_event_type.rb +0 -45
- data/lib/sentdm/models/webhook_response.rb +0 -95
- data/rbi/sentdm/models/api_meta.rbi +0 -55
- data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
- data/rbi/sentdm/models/api_response_template.rbi +0 -74
- data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
- data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
- data/rbi/sentdm/models/brands_brand_data.rbi +0 -104
- data/rbi/sentdm/models/contact_response.rbi +0 -195
- data/rbi/sentdm/models/destination_country.rbi +0 -32
- data/rbi/sentdm/models/error_detail.rbi +0 -66
- data/rbi/sentdm/models/mutation_request.rbi +0 -32
- data/rbi/sentdm/models/pagination_meta.rbi +0 -135
- data/rbi/sentdm/models/payment_details.rbi +0 -59
- data/rbi/sentdm/models/profile_detail.rbi +0 -874
- data/rbi/sentdm/models/profile_settings.rbi +0 -86
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +0 -83
- data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
- data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -148
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +0 -73
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -51
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -410
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -72
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -57
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -59
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -180
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -95
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +0 -81
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +0 -30
- data/rbi/sentdm/models/tcr_vertical.rbi +0 -41
- data/rbi/sentdm/models/template.rbi +0 -129
- data/rbi/sentdm/models/template_body_content.rbi +0 -43
- data/rbi/sentdm/models/template_definition.rbi +0 -164
- data/rbi/sentdm/models/template_variable.rbi +0 -120
- data/rbi/sentdm/models/user_response.rbi +0 -118
- data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
- data/rbi/sentdm/models/webhook_response.rbi +0 -140
- data/sig/sentdm/models/api_meta.rbs +0 -27
- data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
- data/sig/sentdm/models/api_response_of_user.rbs +0 -39
- data/sig/sentdm/models/api_response_template.rbs +0 -39
- data/sig/sentdm/models/api_response_webhook.rbs +0 -39
- data/sig/sentdm/models/billing_contact_info.rbs +0 -30
- data/sig/sentdm/models/brands_brand_data.rbs +0 -30
- data/sig/sentdm/models/contact_response.rbs +0 -116
- data/sig/sentdm/models/destination_country.rbs +0 -19
- data/sig/sentdm/models/error_detail.rbs +0 -39
- data/sig/sentdm/models/mutation_request.rbs +0 -15
- data/sig/sentdm/models/pagination_meta.rbs +0 -67
- data/sig/sentdm/models/payment_details.rbs +0 -30
- data/sig/sentdm/models/profile_detail.rbs +0 -474
- data/sig/sentdm/models/profile_settings.rbs +0 -50
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +0 -41
- data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
- data/sig/sentdm/models/profiles/campaign_data.rbs +0 -82
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +0 -40
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -285
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +0 -89
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +0 -55
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +0 -45
- data/sig/sentdm/models/tcr_brand_relationship.rbs +0 -22
- data/sig/sentdm/models/tcr_vertical.rbs +0 -58
- data/sig/sentdm/models/template.rbs +0 -79
- data/sig/sentdm/models/template_body_content.rbs +0 -30
- data/sig/sentdm/models/template_definition.rbs +0 -45
- data/sig/sentdm/models/template_variable.rbs +0 -84
- data/sig/sentdm/models/user_response.rbs +0 -72
- data/sig/sentdm/models/webhook_event_type.rbs +0 -51
- data/sig/sentdm/models/webhook_response.rbs +0 -103
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BillingContactInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute email
|
|
7
|
-
# Email address where invoices will be sent (required)
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :email, String
|
|
11
|
-
|
|
12
|
-
# @!attribute name
|
|
13
|
-
# Full name of the billing contact or company (required)
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :name, String
|
|
17
|
-
|
|
18
|
-
# @!attribute address
|
|
19
|
-
# Billing address (optional). Free-form text including street, city, state, postal
|
|
20
|
-
# code, and country.
|
|
21
|
-
#
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
optional :address, String, nil?: true
|
|
24
|
-
|
|
25
|
-
# @!attribute phone
|
|
26
|
-
# Phone number for the billing contact (optional)
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
optional :phone, String, nil?: true
|
|
30
|
-
|
|
31
|
-
# @!method initialize(email:, name:, address: nil, phone: nil)
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {Sentdm::Models::BillingContactInfo} for more details.
|
|
34
|
-
#
|
|
35
|
-
# Billing contact information for a profile. Required when billing_model is
|
|
36
|
-
# "profile" or "profile_and_organization".
|
|
37
|
-
#
|
|
38
|
-
# @param email [String] Email address where invoices will be sent (required)
|
|
39
|
-
#
|
|
40
|
-
# @param name [String] Full name of the billing contact or company (required)
|
|
41
|
-
#
|
|
42
|
-
# @param address [String, nil] Billing address (optional). Free-form text including street, city, state, postal
|
|
43
|
-
#
|
|
44
|
-
# @param phone [String, nil] Phone number for the billing contact (optional)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandsBrandData < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute compliance
|
|
7
|
-
# Compliance and TCR information for brand registration
|
|
8
|
-
#
|
|
9
|
-
# @return [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo]
|
|
10
|
-
required :compliance,
|
|
11
|
-
-> { Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo }
|
|
12
|
-
|
|
13
|
-
# @!attribute contact
|
|
14
|
-
# Contact information for brand KYC
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo]
|
|
17
|
-
required :contact,
|
|
18
|
-
-> { Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo }
|
|
19
|
-
|
|
20
|
-
# @!attribute business
|
|
21
|
-
# Business details and address for brand KYC
|
|
22
|
-
#
|
|
23
|
-
# @return [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo, nil]
|
|
24
|
-
optional :business,
|
|
25
|
-
-> { Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo },
|
|
26
|
-
nil?: true
|
|
27
|
-
|
|
28
|
-
# @!method initialize(compliance:, contact:, business: nil)
|
|
29
|
-
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
30
|
-
#
|
|
31
|
-
# @param compliance [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo] Compliance and TCR information for brand registration
|
|
32
|
-
#
|
|
33
|
-
# @param contact [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo] Contact information for brand KYC
|
|
34
|
-
#
|
|
35
|
-
# @param business [Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo, nil] Business details and address for brand KYC
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ContactResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
# Unique identifier for the contact
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute available_channels
|
|
13
|
-
# Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :available_channels, String
|
|
17
|
-
|
|
18
|
-
# @!attribute channel_consent
|
|
19
|
-
# Consent status by channel. Keys: "sms", "whatsapp". Values: "opted_in",
|
|
20
|
-
# "opted_out". All channels will have the same status because consent is global
|
|
21
|
-
# across channels. A STOP on any channel opts out of all channels; a START opts in
|
|
22
|
-
# to all.
|
|
23
|
-
#
|
|
24
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
25
|
-
optional :channel_consent, Sentdm::Internal::Type::HashOf[String], nil?: true
|
|
26
|
-
|
|
27
|
-
# @!attribute country_code
|
|
28
|
-
# Country calling code (e.g., 1 for US/Canada)
|
|
29
|
-
#
|
|
30
|
-
# @return [String, nil]
|
|
31
|
-
optional :country_code, String
|
|
32
|
-
|
|
33
|
-
# @!attribute created_at
|
|
34
|
-
# When the contact was created
|
|
35
|
-
#
|
|
36
|
-
# @return [Time, nil]
|
|
37
|
-
optional :created_at, Time
|
|
38
|
-
|
|
39
|
-
# @!attribute default_channel
|
|
40
|
-
# Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :default_channel, String
|
|
44
|
-
|
|
45
|
-
# @!attribute format_e164
|
|
46
|
-
# Phone number in E.164 format (e.g., +1234567890)
|
|
47
|
-
#
|
|
48
|
-
# @return [String, nil]
|
|
49
|
-
optional :format_e164, String
|
|
50
|
-
|
|
51
|
-
# @!attribute format_international
|
|
52
|
-
# Phone number in international format (e.g., +1 234-567-890)
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :format_international, String
|
|
56
|
-
|
|
57
|
-
# @!attribute format_national
|
|
58
|
-
# Phone number in national format (e.g., (234) 567-890)
|
|
59
|
-
#
|
|
60
|
-
# @return [String, nil]
|
|
61
|
-
optional :format_national, String
|
|
62
|
-
|
|
63
|
-
# @!attribute format_rfc
|
|
64
|
-
# Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :format_rfc, String
|
|
68
|
-
|
|
69
|
-
# @!attribute is_inherited
|
|
70
|
-
# Whether this is an inherited contact (read-only)
|
|
71
|
-
#
|
|
72
|
-
# @return [Boolean, nil]
|
|
73
|
-
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
74
|
-
|
|
75
|
-
# @!attribute opt_out
|
|
76
|
-
# Whether the contact has opted out of messaging
|
|
77
|
-
#
|
|
78
|
-
# @return [Boolean, nil]
|
|
79
|
-
optional :opt_out, Sentdm::Internal::Type::Boolean
|
|
80
|
-
|
|
81
|
-
# @!attribute phone_number
|
|
82
|
-
# Phone number in original format
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :phone_number, String
|
|
86
|
-
|
|
87
|
-
# @!attribute region_code
|
|
88
|
-
# ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
89
|
-
#
|
|
90
|
-
# @return [String, nil]
|
|
91
|
-
optional :region_code, String
|
|
92
|
-
|
|
93
|
-
# @!attribute updated_at
|
|
94
|
-
# When the contact was last updated
|
|
95
|
-
#
|
|
96
|
-
# @return [Time, nil]
|
|
97
|
-
optional :updated_at, Time, nil?: true
|
|
98
|
-
|
|
99
|
-
# @!method initialize(id: nil, available_channels: nil, channel_consent: 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)
|
|
100
|
-
# Some parameter documentations has been truncated, see
|
|
101
|
-
# {Sentdm::Models::ContactResponse} for more details.
|
|
102
|
-
#
|
|
103
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
104
|
-
#
|
|
105
|
-
# @param id [String] Unique identifier for the contact
|
|
106
|
-
#
|
|
107
|
-
# @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
108
|
-
#
|
|
109
|
-
# @param channel_consent [Hash{Symbol=>String}, nil] Consent status by channel. Keys: "sms", "whatsapp". Values: "opted_in", "opted_o
|
|
110
|
-
#
|
|
111
|
-
# @param country_code [String] Country calling code (e.g., 1 for US/Canada)
|
|
112
|
-
#
|
|
113
|
-
# @param created_at [Time] When the contact was created
|
|
114
|
-
#
|
|
115
|
-
# @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
116
|
-
#
|
|
117
|
-
# @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
|
|
118
|
-
#
|
|
119
|
-
# @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
|
|
120
|
-
#
|
|
121
|
-
# @param format_national [String] Phone number in national format (e.g., (234) 567-890)
|
|
122
|
-
#
|
|
123
|
-
# @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
124
|
-
#
|
|
125
|
-
# @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
|
|
126
|
-
#
|
|
127
|
-
# @param opt_out [Boolean] Whether the contact has opted out of messaging
|
|
128
|
-
#
|
|
129
|
-
# @param phone_number [String] Phone number in original format
|
|
130
|
-
#
|
|
131
|
-
# @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
132
|
-
#
|
|
133
|
-
# @param updated_at [Time, nil] When the contact was last updated
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class DestinationCountry < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
#
|
|
8
|
-
# @return [String, nil]
|
|
9
|
-
optional :id, String
|
|
10
|
-
|
|
11
|
-
# @!attribute is_main
|
|
12
|
-
#
|
|
13
|
-
# @return [Boolean, nil]
|
|
14
|
-
optional :is_main, Sentdm::Internal::Type::Boolean, api_name: :isMain
|
|
15
|
-
|
|
16
|
-
# @!method initialize(id: nil, is_main: nil)
|
|
17
|
-
# @param id [String]
|
|
18
|
-
# @param is_main [Boolean]
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ErrorDetail < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute code
|
|
7
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :code, String
|
|
11
|
-
|
|
12
|
-
# @!attribute details
|
|
13
|
-
# Additional validation error details (field-level errors)
|
|
14
|
-
#
|
|
15
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
16
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute doc_url
|
|
19
|
-
# URL to documentation about this error
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :doc_url, String, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute message
|
|
25
|
-
# Human-readable error message
|
|
26
|
-
#
|
|
27
|
-
# @return [String, nil]
|
|
28
|
-
optional :message, String
|
|
29
|
-
|
|
30
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
31
|
-
# Error information
|
|
32
|
-
#
|
|
33
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
34
|
-
#
|
|
35
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
36
|
-
#
|
|
37
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
38
|
-
#
|
|
39
|
-
# @param message [String] Human-readable error message
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class MutationRequest < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute sandbox
|
|
7
|
-
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
8
|
-
# for testing integrations without actual execution
|
|
9
|
-
#
|
|
10
|
-
# @return [Boolean, nil]
|
|
11
|
-
optional :sandbox, Sentdm::Internal::Type::Boolean
|
|
12
|
-
|
|
13
|
-
# @!method initialize(sandbox: nil)
|
|
14
|
-
# Some parameter documentations has been truncated, see
|
|
15
|
-
# {Sentdm::Models::MutationRequest} for more details.
|
|
16
|
-
#
|
|
17
|
-
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class PaginationMeta < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute cursors
|
|
7
|
-
# Cursor-based pagination pointers
|
|
8
|
-
#
|
|
9
|
-
# @return [Sentdm::Models::PaginationMeta::Cursors, nil]
|
|
10
|
-
optional :cursors, -> { Sentdm::PaginationMeta::Cursors }, nil?: true
|
|
11
|
-
|
|
12
|
-
# @!attribute has_more
|
|
13
|
-
# Whether there are more pages after this one
|
|
14
|
-
#
|
|
15
|
-
# @return [Boolean, nil]
|
|
16
|
-
optional :has_more, Sentdm::Internal::Type::Boolean
|
|
17
|
-
|
|
18
|
-
# @!attribute page
|
|
19
|
-
# Current page number (1-indexed)
|
|
20
|
-
#
|
|
21
|
-
# @return [Integer, nil]
|
|
22
|
-
optional :page, Integer
|
|
23
|
-
|
|
24
|
-
# @!attribute page_size
|
|
25
|
-
# Number of items per page
|
|
26
|
-
#
|
|
27
|
-
# @return [Integer, nil]
|
|
28
|
-
optional :page_size, Integer
|
|
29
|
-
|
|
30
|
-
# @!attribute total_count
|
|
31
|
-
# Total number of items across all pages
|
|
32
|
-
#
|
|
33
|
-
# @return [Integer, nil]
|
|
34
|
-
optional :total_count, Integer
|
|
35
|
-
|
|
36
|
-
# @!attribute total_pages
|
|
37
|
-
# Total number of pages
|
|
38
|
-
#
|
|
39
|
-
# @return [Integer, nil]
|
|
40
|
-
optional :total_pages, Integer
|
|
41
|
-
|
|
42
|
-
# @!method initialize(cursors: nil, has_more: nil, page: nil, page_size: nil, total_count: nil, total_pages: nil)
|
|
43
|
-
# Pagination metadata for list responses
|
|
44
|
-
#
|
|
45
|
-
# @param cursors [Sentdm::Models::PaginationMeta::Cursors, nil] Cursor-based pagination pointers
|
|
46
|
-
#
|
|
47
|
-
# @param has_more [Boolean] Whether there are more pages after this one
|
|
48
|
-
#
|
|
49
|
-
# @param page [Integer] Current page number (1-indexed)
|
|
50
|
-
#
|
|
51
|
-
# @param page_size [Integer] Number of items per page
|
|
52
|
-
#
|
|
53
|
-
# @param total_count [Integer] Total number of items across all pages
|
|
54
|
-
#
|
|
55
|
-
# @param total_pages [Integer] Total number of pages
|
|
56
|
-
|
|
57
|
-
# @see Sentdm::Models::PaginationMeta#cursors
|
|
58
|
-
class Cursors < Sentdm::Internal::Type::BaseModel
|
|
59
|
-
# @!attribute after
|
|
60
|
-
# Cursor to fetch the next page
|
|
61
|
-
#
|
|
62
|
-
# @return [String, nil]
|
|
63
|
-
optional :after, String, nil?: true
|
|
64
|
-
|
|
65
|
-
# @!attribute before
|
|
66
|
-
# Cursor to fetch the previous page
|
|
67
|
-
#
|
|
68
|
-
# @return [String, nil]
|
|
69
|
-
optional :before, String, nil?: true
|
|
70
|
-
|
|
71
|
-
# @!method initialize(after: nil, before: nil)
|
|
72
|
-
# Cursor-based pagination pointers
|
|
73
|
-
#
|
|
74
|
-
# @param after [String, nil] Cursor to fetch the next page
|
|
75
|
-
#
|
|
76
|
-
# @param before [String, nil] Cursor to fetch the previous page
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class PaymentDetails < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute card_number
|
|
7
|
-
# Card number (digits only, 13–19 characters)
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :card_number, String
|
|
11
|
-
|
|
12
|
-
# @!attribute cvc
|
|
13
|
-
# Card security code (3–4 digits)
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :cvc, String
|
|
17
|
-
|
|
18
|
-
# @!attribute expiry
|
|
19
|
-
# Card expiry date in MM/YY format (e.g. "09/27")
|
|
20
|
-
#
|
|
21
|
-
# @return [String]
|
|
22
|
-
required :expiry, String
|
|
23
|
-
|
|
24
|
-
# @!attribute zip_code
|
|
25
|
-
# Billing ZIP / postal code associated with the card
|
|
26
|
-
#
|
|
27
|
-
# @return [String]
|
|
28
|
-
required :zip_code, String
|
|
29
|
-
|
|
30
|
-
# @!method initialize(card_number:, cvc:, expiry:, zip_code:)
|
|
31
|
-
# Payment card details for a profile. Accepted when billing_model is "profile" or
|
|
32
|
-
# "profile_and_organization". These details are not stored on our servers and will
|
|
33
|
-
# be forwarded to the payment processor.
|
|
34
|
-
#
|
|
35
|
-
# @param card_number [String] Card number (digits only, 13–19 characters)
|
|
36
|
-
#
|
|
37
|
-
# @param cvc [String] Card security code (3–4 digits)
|
|
38
|
-
#
|
|
39
|
-
# @param expiry [String] Card expiry date in MM/YY format (e.g. "09/27")
|
|
40
|
-
#
|
|
41
|
-
# @param zip_code [String] Billing ZIP / postal code associated with the card
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|